get first elements in a list and then delete it haskell code example Example: remove first element list haskell a = [1, 2, 3, 4] b = tail a -- b == [2, 3, 4]