summaryrefslogblamecommitdiff
path: root/1-10/1.hs
blob: 0d2f07a6cedb2c8ee10e05a8c31357744e58f6a3 (plain) (tree)
1
2
3


                              
myLast [] = error "empty list"
myLast [x] = x
myLast (_:xs) = myLast xs