Problem 1

(*) Find the last element of a list. Solutions

(Note that the Lisp transcription of this problem is incorrect.)

Example in Haskell:

myLast [1,2,3,4]

4

myLast [‘x’,‘y’,‘z’]

‘z’