RosettaCodeData/Task/Array-concatenation/Ursa/array-concatenation.ursa
2016-12-05 23:44:36 +01:00

16 lines
332 B
Text

# create two streams (the ursa equivalent of arrays)
# a contains the numbers 1-10, b contains 11-20
decl int<> a b
decl int i
for (set i 1) (< i 11) (inc i)
append i a
end for
for (set i 11) (< i 21) (inc i)
append i b
end for
# append the values in b to a
append b a
# output a to the console
out a endl console