Module rpu.iterables
Functions
def chunk(iterable: Iterable, max_size: int) ‑> Iterable[list[Any]]-
|iterable|
Chunks the given iterable into chunks of the given size
Parameters
iterable:typing.Iterable- The iterable you want to chunk
max_size:int- the max size of the chunks
def get(iterable: Iterable, /, **attrs: Any) ‑> Any-
Gets an item from the given iterable with sertain attributes
Parameters
iterable:typing.Iterable- The item you want to be iterated through
**attrs:typing.Any- The attribute(s) to check for