haskell append to list
1 : [2, 3] --return [1, 2, 3]
first element in list haskell
list = [1, 2, 3] head :: [a] -> a head (x:_) = x head list -- 1
haskell list append
-- to append a element add the end (right) of a list -- we can use list concatenation [1,2,3,4] ++ [5] --return [1,2,3,4.5]