Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
rio RIO.List No documentation available.
-
rio RIO.List No documentation available.
-
rio RIO.List No documentation available.
maximumByMaybe :: Foldable t => (a -> a -> Ordering) -> t a -> Maybe ario RIO.List No documentation available.
maximumMaybe :: (Ord a, Foldable t) => t a -> Maybe ario RIO.List No documentation available.
minimumByMaybe :: Foldable t => (a -> a -> Ordering) -> t a -> Maybe ario RIO.List No documentation available.
minimumMaybe :: (Ord a, Foldable t) => t a -> Maybe ario RIO.List No documentation available.
-
rio RIO.List No documentation available.
mapMaybe :: (a -> Maybe b) -> Map k a -> Map k brio RIO.Map Map values and collect the Just results.
let f x = if x == "a" then Just "new a" else Nothing mapMaybe f (fromList [(5,"a"), (3,"b")]) == singleton 5 "new a"
mapMaybeWithKey :: (k -> a -> Maybe b) -> Map k a -> Map k brio RIO.Map Map keys/values and collect the Just results.
let f k _ = if k < 5 then Just ("key : " ++ (show k)) else Nothing mapMaybeWithKey f (fromList [(5,"a"), (3,"b")]) == singleton 3 "key : 3"