RosettaCodeData/Task/Loop-over-multiple-arrays-simultaneously/Smalltalk/loop-over-multiple-arrays-simultaneously-3.st
2023-07-01 13:44:08 -04:00

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