openmnglab.util.iterables#

Functions

ensure_iterable(inp, type)

Ensures that the input is an iterable of the given type.

ensure_sequence(inp, type[, ...])

Ensures that the input is a sequence.

unpack_sequence(inp)

Unpacks a sequence, based on the following conditions: .. seealso:: ensure_iterable() for the inverse operation.