99 Haskell
1. Make a function named 'myLast' that finds the last element of a list.
Main.hs
-- Welcome to 99 Haskell! Solve H-99[0] problems live in the browser to -- strengthen your understanding of the language. Help out on GitHub[1]. -- [0] https://wiki.haskell.org/H-99:_Ninety-Nine_Haskell_Problems -- [1] https://github.com/bramgg/99haskell myLast :: [a] -> a
myLast [1,2,3,4] -> 4
myLast ['x','y','z'] -> 'z'