- cross-posted to:
- ai_detox@feddit.org
- cross-posted to:
- ai_detox@feddit.org
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’
You must log in or register to comment.