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