License | BSD-3-Clause |
---|---|
Maintainer | Preetham Gujjula <libraries@mail.preetham.io> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- applyMerge :: Ord c => (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c
- applyMergeBy :: (c -> c -> Ordering) -> (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c
- applyMergeOn :: Ord d => (c -> d) -> (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c
Documentation
applyMerge :: Ord c => (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c Source #
Like applyMerge
, but operates on NonEmpty
s instead
of lists.
applyMergeBy :: (c -> c -> Ordering) -> (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c Source #
Like applyMerge
, but uses a custom comparison function.
applyMergeOn :: Ord d => (c -> d) -> (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c Source #
Like applyMerge
, but applies a custom projection function before
performing comparisons.