Unzipped
Bases: ,
Represents the result of unzipping an Iter of pairs into two separate Iter.
See Also
Iter.unzip()
Example:
>>> import pyochain as pc
>>> pairs = pc.Iter(((1, 'a'), (2, 'b'), (3, 'c')))
>>> unzipped = pairs.unzip()
>>> unzipped.left.collect()
Seq(1, 2, 3)
Source code in src/pyochain/_iter.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
left
instance-attribute
An Iter over the first elements of the pairs.
right
instance-attribute
An Iter over the second elements of the pairs.