Nested templated data: Difference between revisions

Content added Content deleted
Line 178: Line 178:
link a to a()
link a to a()
while k {
while k {
select case type$(a(k^))
select case type$(a(k^))
case "mArray"
case "mArray"
Append res, (Lambda(array(a, k^)),)
Append res, (Lambda(a(k^)),)
Case "VarItem" ' for more than one line need to place in a block
Case "VarItem" ' for more than one line need to place in a block
{
{
Append res, ("Unused#pos"+trim$(str$(p)),) ' one item tuple append to res
Append res, ("Unused#pos"+trim$(str$(p)),) ' one item tuple append to res
append unused, p
append unused, p
p++
p++
}
}
else case
else case
{
{
Append res, ("Payload#"+trim$(str$(array(k))),) ' one item tuple append to res
Append res, ("Payload#"+trim$(str$(array(k))),) ' one item tuple append to res
p++
p++
}
}
end select
end select
}
}
=res
=res
Line 244: Line 244:
Checkit
Checkit
report Clipboard$
report Clipboard$

</lang>
</lang>
{{out}}
{{out}}
Line 256: Line 255:
Unused: pos 1, pos 4
Unused: pos 1, pos 4
</pre >
</pre >
1


=={{header|Perl}}==
=={{header|Perl}}==