tail haskell code example Example: get tail of list haskell list = [1, 2, 3, 4] tail :: [a] -> [a] tail [] = [] tail (_:xs) = xs