Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Grab bag of miscellaneous functions.
Documentation
mayLast :: [a] -> Maybe ([a], a) Source
Returns a list of the first items in a list and the last item, or Nothing if the list is empty.
Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Grab bag of miscellaneous functions.
mayLast :: [a] -> Maybe ([a], a) Source
Returns a list of the first items in a list and the last item, or Nothing if the list is empty.