
Generics.EMGM.Functions.UnzipWith  Portability  nonportable  Stability  experimental  Maintainer  generics@haskell.org 



Description 
Summary: Generic function that applies a (nongeneric) function to every
element in a value, splitting the element into two. The result are two
structurally equivalent values, one with the elements from the first
component of the splitting function and the other with the elements from the
second component.
unzipWith can be seen as the dual of the zipWith function. It has no
Prelude counterpart.
See also Generics.EMGM.Functions.ZipWith.


Synopsis 



Documentation 

newtype UnzipWith a b c  Source 

Type for unzipWith
 Constructors  UnzipWith   selUnzipWith :: a > (b, c)  

 Instances  



:: FRep3 UnzipWith f   => a > (b, c)  Splitting function.
 > f a  Container of avalues.
 > (f b, f c)  Pair of containers.
 Splits a container into two structurally equivalent containers by applying
a function to every element, which splits it into two corresponding elements.
All other functions in this module are derived from unzipWith.




Transforms a container of pairs into a container of first components and a
container of second components. This is a generic version of the Prelude
function of the same name.


Produced by Haddock version 2.4.2 