| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Align.Indexed
Description
These-based zipping and unzipping of indexed functors.
Since: 0.7.6
Synopsis
- class (FunctorWithIndex i f, Semialign f) => AlignWithIndex i f | f -> i where
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 , but also provides an index.alignWith
Instances
| AlignWithIndex Int [] Source # | |
| AlignWithIndex Int ZipList Source # | |
| AlignWithIndex Int IntMap Source # | |
| AlignWithIndex Int Seq Source # | |
| AlignWithIndex Int Vector Source # | |
| AlignWithIndex () Maybe Source # | |
| (Eq k, Hashable k) => AlignWithIndex k (HashMap k) Source # | |
| Ord k => AlignWithIndex k (Map k) Source # | |