findJust op = fromJust . find opModulesafe-0.3.21Haskell2010
Safe.Foldable
Synopsis
- value findJust
- value foldl1May
- value foldl1Def
- value foldl1Note
- value foldr1May
- value foldr1Def
- value foldr1Note
- value findJustDef
- value findJustNote
- value minimumMay
- value minimumNote
- value maximumMay
- value maximumNote
- value minimumByMay
- value minimumByNote
- value maximumByMay
- value maximumByNote
- value maximumBoundBy
- value minimumBoundBy
- value maximumBounded
- value maximumBound
- value minimumBounded
- value minimumBound
- value minimumDef
- value maximumDef
- value minimumByDef
- value maximumByDef
- value foldl1Safe
- value foldr1Safe
- value findJustSafe
- Packagesafe-0.3.21
- Exports30
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceFoldable.hs
New functions
Safe wrappers
The largest element of a foldable structure with respect to the given comparison function. The result is bounded by the value given as the first argument.
The smallest element of a foldable structure with respect to the given comparison function. The result is bounded by the value given as the first argument.
The largest element of a foldable structure. The result is bounded by minBound.
The largest element of a foldable structure. The result is bounded by the value given as the first argument.
The largest element of a foldable structure. The result is bounded by maxBound.
The smallest element of a foldable structure. The result is bounded by the value given as the first argument.
Discouraged
New users are recommended to use minimumBound or maximumBound instead.
New users are recommended to use minimumBound or maximumBound instead.
New users are recommended to use minimumBoundBy or maximumBoundBy instead.
New users are recommended to use minimumBoundBy or maximumBoundBy instead.
Deprecated
Deprecated. Use foldl f mempty instead.
Deprecated. Use foldr f mempty instead.
Deprecated. Use findJustDef mempty instead.