RosettaCodeData/Task/Array-concatenation/Haskell/array-concatenation-2.hs

3 lines
38 B
Haskell

[] ++ x = x
(h:t) ++ y = h : (t ++ y)