Array concatenation: Difference between revisions

Line 1,672:
=={{header|EMal}}==
<syntaxhighlight lang="emal">
type ArrayConcatenation
^|EMal has the concept of list expansion,
|you can expand a list to function arguments
|by prefixing it with the unary plus.
|Then we have the "of" method that allows list inizialization.
|^
List a = int[1,2,3]
List b = int[4,5,6]
List c = int[].of(+a, +b)]
writeLine(c)
</syntaxhighlight>
214

edits