Welcome to iter_karld_tools’s documentation!

Contents:

Getting Started with iter_karld_tools

Tools to use with iterators.

Examples

iter_karld_tools Package

iter_karld_tools Package

iter_karld_tools.i_batch(max_size, iterable)

Generator that iteratively batches items to a max size and consumes the items iterable as each batch is yielded.

Parameters:
  • max_size (int) – Max size of each batch.
  • iterable (iter) – An iterable
iter_karld_tools.yield_getter_of(getter_maker, iterator)

Iteratively map iterator over the result of getter_maker.

Parameters:
  • getter_maker – function that returns a getter function.
  • iterator – An iterator.
iter_karld_tools.yield_nth_of(nth, iterator)

For an iterator that returns sequences, yield the nth value of each.

Parameters:
  • nth (int) – Index desired column of each sequence.
  • iterator – iterator of sequences.

_meta Module

Subpackages

tests Package

test_iter_tools Module

example scripts

Indices and tables