apply-merge-0.1.0.0: Lift a binary, non-decreasing function onto ordered lists and order the output
LicenseBSD-3-Clause
MaintainerPreetham Gujjula <libraries@mail.preetham.io>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.List.NonEmpty.ApplyMerge

Description

 
Synopsis

Documentation

applyMerge :: Ord c => (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c Source #

Like applyMerge, but operates on NonEmptys 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.