spdl.source.utils

Overview

Implements meta-transformations on iterables/iterators.

API Reference

Functions

repeat_source

repeat_source

Convert an iterable into an infinite iterator with optional shuffling.

embed_shuffle

embed_shuffle

[Experimental] Convert IterableWithShuffle to Iterable by embedding the shuffle() call into __iter__().

Classes

MergeIterator

MergeIterator

Iterate over given iterables and yield one item from each iterator.