RosettaCodeData/Task/Array-concatenation/EMal/array-concatenation.emal

9 lines
215 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
^|EMal has the concept of list expansion,
|you can expand a list to function arguments
|by prefixing it with the unary plus.
|^
2024-10-16 18:07:41 -07:00
List a ← int[1, 2, 3]
List b ← int[4, 5, 6]
List c ← int[+a, +b]
2023-07-01 11:58:00 -04:00
writeLine(c)