RosettaCodeData/Task/Loop-over-multiple-arrays-simultaneously/Smalltalk/loop-over-multiple-arrays-simultaneously.st
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

10 lines
250 B
Smalltalk

|a b c|
a := OrderedCollection new addAll: #('a' 'b' 'c').
b := OrderedCollection new addAll: #('A' 'B' 'C').
c := OrderedCollection new addAll: #(1 2 3).
1 to: (a size) do: [ :i |
(a at: i) display.
(b at: i) display.
(c at: i) displayNl.
].