diff options
Diffstat (limited to 'h1.hs')
-rw-r--r-- | h1.hs | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -1,9 +0,0 @@ - -myLast :: [a] -> a -myLast [] = error "Empty List" -myLast [x] = x -myLast (x:xs) = myLast xs - -myLast' = foldl1 (flip const) - -myLast'' = foldl1 (curry snd) |