Popularity
2.1
Declining
Activity
0.0
Stable
2
3
0
Monthly Downloads: 9
Programming language: Haskell
License: MIT License
Tags:
Safe
Unclassified
Add another 'safe' Package
README
safe-foldable
Provides defaulting
and mayhap
to safely wrap functions on Foldable
s that are partial with null data.
λ. minimum []
*** Exception: Prelude.minimum: empty list
λ. minimum [3,1,2]
1
λ. defaulting 0 minimum []
0
λ. defaulting 0 minimum [3,1,2]
1
λ. mayhap minimum []
Nothing
λ. mayhap minimum [3,1,2]
Just 1