stdlibx.itertools.fn module

stdlibx.itertools.fn.collect()[source]
Return type:

Operation[Iterable[T], list[T]]

stdlibx.itertools.fn.filter_(func, /, *, lazy=True)[source]
Parameters:
  • func (Callable[[T], bool])

  • lazy (bool)

Return type:

Operation[Iterable[T], Iterable[T]]

stdlibx.itertools.fn.filter_none(*, lazy=True)[source]
Parameters:

lazy (bool)

Return type:

Operation[Iterable[Union[T, None]], Iterable[T]]

stdlibx.itertools.fn.map_(func, /, *, lazy=True)[source]
Parameters:
  • func (Callable[[T], U])

  • lazy (bool)

Return type:

Operation[Iterable[T], Iterable[U]]

stdlibx.itertools.fn.reduce(initial, func)[source]
Parameters:
  • initial (T)

  • func (Callable[[T, U], T])

Return type:

Operation[Iterable[U], T]