RosettaCodeData/Task/Loop-over-multiple-arrays-s.../Smalltalk/loop-over-multiple-arrays-s...

9 lines
127 B
Smalltalk

|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.
].