Idris2Doc : Data.Cozippable

Data.Cozippable

(source)

Reexports

importpublic Data.These

Definitions

interfaceCozippable : (Type->Type) ->Type
  The `Cozippable` interface describes how you can combine and split elements of a parameterised type, those elements may contain not equal amount of information.

The easiest example is `List`. When you `zip` them using standard `Zippable` interface, only their prefixes of commit length are taken into account,
or else it is impossible to fulfill the interface.
Sometimes we may want to deal with such lack of information explicitly.
That's why zipping function of the `Cozippable` interface takes `These` data type, which is an inclusive "or", i.e. either one of elements, or both of them.

Parameters: z
Methods:
cozipWith : (Theseab->c) ->za->zb->zc
cozip : za->zb->z (Theseab)
Fixity Declaration: infixr operator, level 6
uncozipWith : (a->Thesebc) ->za->These (zb) (zc)
uncozip : z (Theseab) ->These (za) (zb)

Implementations:
Semigroupa=>Cozippable (Paira)
CozippableMaybe
Cozippable (Eithera)
Semigroupa=>Cozippable (Thesea)
CozippableList
CozippableSnocList
CozippableList1
CozippableLazyList
Ordk=>Cozippable (SortedMapk)
cozipWith : Cozippablez=> (Theseab->c) ->za->zb->zc
Totality: total
Visibility: public export
cozip : Cozippablez=>za->zb->z (Theseab)
Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 6
uncozipWith : Cozippablez=> (a->Thesebc) ->za->These (zb) (zc)
Totality: total
Visibility: public export
uncozip : Cozippablez=>z (Theseab) ->These (za) (zb)
Totality: total
Visibility: public export
cozipWith' : Cozippablez=>Functorz=> (Theseab->c) ->These (za) (zb) ->zc
Totality: total
Visibility: public export
cozip' : Cozippablez=>Functorz=>These (za) (zb) ->z (Theseab)
Totality: total
Visibility: public export
comergeWith : Cozippablez=> (a->a->a) ->za->za->za
  Cozip two cozippables taking a value from each one, and combining corresponding values if it is present in both using given function

Totality: total
Visibility: export
comerge : Semigroupa=>Cozippablez=>za->za->za
Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 6