Loop over multiple arrays simultaneously: Difference between revisions

m
→‎{{header|Picat}}: Added {{out}}
No edit summary
m (→‎{{header|Picat}}: Added {{out}})
Line 2,905:
 
=={{header|Picat}}==
Picat has a built-in <code>zip/n</code> andwhich only works with lists (not arrays). It returns an array tuple (<code>{A,B,C}</code>) and not a list (<code>[A,B,C]</code>), which is a typical gotcha.
 
For this task, a foreach loop and list comprenhension are shown.
Line 2,935:
println([A,B,C,D].join(''))
end,
 
nl.</lang>
 
{{out}}
Output:
<pre>foreach loop:
aA1
Line 2,953 ⟶ 2,952:
bB2Q
cC3R</pre>
 
 
=={{header|PicoLisp}}==
495

edits