these-0.8.1: An either-or-both data type & a generalized 'zip with padding' typeclass

Safe HaskellNone
LanguageHaskell2010

Data.Align.Indexed

Description

These-based zipping and unzipping of indexed functors.

Since: 0.7.6

Synopsis

Documentation

class (FunctorWithIndex i f, Semialign f) => AlignWithIndex i f | f -> i where Source #

Keyed version of Align.

Since: 0.7.6

Minimal complete definition

Nothing

Methods

ialign :: (i -> These a b -> c) -> f a -> f b -> f c Source #

Analogous to alignWith, but also provides an index.

Instances
AlignWithIndex Int [] Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (Int -> These a b -> c) -> [a] -> [b] -> [c] Source #

AlignWithIndex Int ZipList Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (Int -> These a b -> c) -> ZipList a -> ZipList b -> ZipList c Source #

AlignWithIndex Int IntMap Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (Int -> These a b -> c) -> IntMap a -> IntMap b -> IntMap c Source #

AlignWithIndex Int Seq Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (Int -> These a b -> c) -> Seq a -> Seq b -> Seq c Source #

AlignWithIndex Int Vector Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (Int -> These a b -> c) -> Vector a -> Vector b -> Vector c Source #

AlignWithIndex () Maybe Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (() -> These a b -> c) -> Maybe a -> Maybe b -> Maybe c Source #

(Eq k, Hashable k) => AlignWithIndex k (HashMap k) Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (k -> These a b -> c) -> HashMap k a -> HashMap k b -> HashMap k c Source #

Ord k => AlignWithIndex k (Map k) Source # 
Instance details

Defined in Data.Align.Indexed

Methods

ialign :: (k -> These a b -> c) -> Map k a -> Map k b -> Map k c Source #