RosettaCodeData/Task/Array-concatenation/OoRexx/array-concatenation.rexx

7 lines
197 B
Rexx
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
a = .array~of(1,2,3)
say "Array a has " a~items "items"
b = .array~of(4,5,6)
say "Array b has " b~items "items"
a~appendall(b) -- adds all items from b to a
say "Array a now has " a~items "