RosettaCodeData/Task/Loop-over-multiple-arrays-simultaneously/Smalltalk/loop-over-multiple-arrays-simultaneously-3.st

9 lines
127 B
Smalltalk
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
|a b c|
a := #('a' 'b' 'c').
b := #('A' 'B' 'C').
c := #(1 2 3).
a with:b with:c do:[:ai :bi :ci |
(ai,bi,ci) displayNl.
].