haskell list prepend code example
Example 1: remove first element list haskell
a = [1, 2, 3, 4]
b = tail a
-- b == [2, 3, 4]
Example 2: haskell append to list
1 : [2, 3]
--return [1, 2, 3]
a = [1, 2, 3, 4]
b = tail a
-- b == [2, 3, 4]
1 : [2, 3]
--return [1, 2, 3]