RosettaCodeData/Task/Array-concatenation/EMal/array-concatenation.emal
2024-10-16 18:07:41 -07:00

8 lines
215 B
Text

^|EMal has the concept of list expansion,
|you can expand a list to function arguments
|by prefixing it with the unary plus.
|^
List a ← int[1, 2, 3]
List b ← int[4, 5, 6]
List c ← int[+a, +b]
writeLine(c)