Array concatenation: Difference between revisions

Added Elixir
(Added Elixir)
Line 542:
consoleEx writeLine:"(":a:") + (":b:") = (":(a + b):")".
].</lang>
 
=={{header|Elixir}}==
<lang elixir>iex(1)> [1, 2, 3] ++ [4, 5, 6]
[1, 2, 3, 4, 5, 6]
iex(2)> Enum.concat([[1, [2], 3], [4], [5, 6]])
[1, [2], 3, 4, 5, 6]
iex(3)> Enum.concat([1..3, [4,5,6], 7..9])
[1, 2, 3, 4, 5, 6, 7, 8, 9]</lang>
 
=={{header|Emacs Lisp}}==
Anonymous user