Problem 3
(*) Find the K’th element of a list. Solutions
The first element in the list is number 1. Example:
* (element-at '(a b c d e) 3)
c
Example in Haskell:
elementAt [1,2,3] 2
2
elementAt “haskell” 5
‘e’
You must log in or register to comment.