Iterator Tools Implementation
monad_std.iter.impl.default_iter._IterIterator
monad_std.iter.impl.default_iter._IterIterable
monad_std.iter.impl.default_iter._Iter
Bases: Iterator[T]
, Generic[T]
Source code in monad_std/iter/impl/default_iter.py
monad_std.iter.impl.array_chunk.ArrayChunk
Bases: IterMeta[List[T]]
, Generic[T]
Source code in monad_std/iter/impl/array_chunk.py
get_unused()
Return the last/unused several elements.
Examples:
Source code in monad_std/iter/impl/array_chunk.py
monad_std.iter.impl.batch.Batching
monad_std.iter.impl.chain.Chain
Bases: IterMeta[T]
, Generic[T, It1, It2]
Source code in monad_std/iter/impl/chain.py
monad_std.iter.impl.chunk.Chunk
Bases: IterMeta[List[T]]
, Generic[T]
Source code in monad_std/iter/impl/chunk.py
monad_std.iter.impl.enumerate.Enumerate
Bases: IterMeta[Tuple[int, T]]
, Generic[T]
Source code in monad_std/iter/impl/enumerate.py
monad_std.iter.impl.filter.Filter
Bases: IterMeta[T]
, Generic[T]
Source code in monad_std/iter/impl/filter.py
monad_std.iter.impl.filter_map.FilterMap
Bases: IterMeta[U]
, Generic[T, U]
Source code in monad_std/iter/impl/filter_map.py
monad_std.iter.impl.flat_map.FlatMap
Bases: IterMeta[U]
, Generic[T, U]
Source code in monad_std/iter/impl/flat_map.py
monad_std.iter.impl.flatten.Flatten
Bases: IterMeta[T]
, Generic[T]
Source code in monad_std/iter/impl/flatten.py
monad_std.iter.impl.fuse.Fuse
Bases: IterMeta[T]
, Generic[T]
Source code in monad_std/iter/impl/fuse.py
monad_std.iter.impl.group.GroupBy
Bases: IterMeta[Tuple[K, Group[T, K]]]
, Generic[T, K]
Source code in monad_std/iter/impl/group.py
monad_std.iter.impl.group.Group
Bases: IterMeta[T]
, Generic[T, K]
Source code in monad_std/iter/impl/group.py
monad_std.iter.impl.inspect.Inspect
monad_std.iter.impl.intersperse.Intersperse
Bases: IterMeta[T]
, Generic[T, It]
Source code in monad_std/iter/impl/intersperse.py
monad_std.iter.impl.intersperse.IntersperseWith
Bases: IterMeta[T]
, Generic[T, It]
Source code in monad_std/iter/impl/intersperse.py
monad_std.iter.impl.map.Map
monad_std.iter.impl.map.MapWhile
monad_std.iter.impl.map.MapWindows
Bases: IterMeta[R]
, Generic[T, R]
Source code in monad_std/iter/impl/map.py
monad_std.iter.impl.once.OnceWith
Bases: IterMeta[T]
, Generic[T]
Source code in monad_std/iter/impl/once.py
monad_std.iter.impl.partition.PartitionBy
Bases: Generic[T, L, R]
Source code in monad_std/iter/impl/partition.py
monad_std.iter.impl.partition.PartitionGroup
Bases: IterMeta[B]
, Generic[T, L, R, B]
Source code in monad_std/iter/impl/partition.py
monad_std.iter.impl.peekable.Peekable
Bases: IterMeta[T]
, Generic[T, It]
Source code in monad_std/iter/impl/peekable.py
peek()
Peek the next element of the inner iterator.
Note that the underlying iterator is still advanced when peek
is called for the first time:
In order to retrieve the next element, next
is called on the underlying iterator,
hence any side effects (i.e. anything other than fetching the next value) of the next method will occur.
Examples:
Source code in monad_std/iter/impl/peekable.py
monad_std.iter.impl.repeat.Repeat
Bases: IterMeta[T]
, Generic[T]
Source code in monad_std/iter/impl/repeat.py
monad_std.iter.impl.scan.Scan
Bases: IterMeta[B]
, Generic[T, B, U]
Source code in monad_std/iter/impl/scan.py
monad_std.iter.impl.skip.Skip
Bases: IterMeta[T]
, Generic[T]
Source code in monad_std/iter/impl/skip.py
monad_std.iter.impl.take.Take
monad_std.iter.impl.take.TakeWhile
Bases: IterMeta[T]
, Generic[T]