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