last element in list haskell code example Example: haskell get last element of list list = [1,2,3,4,5] last list -- returns 5