pythonwrench.collections.reducers module¶
-
pythonwrench.collections.reducers.intersect(*args, start=
None)[source]¶ Reduce elements using “and” operator (&).
-
pythonwrench.collections.reducers.prod(args: Iterable[T_SupportsMul], /, *, start: T_SupportsMul =
1) T_SupportsMul[source]¶ -
pythonwrench.collections.reducers.prod(*args: T_SupportsMul, start: T_SupportsMul =
1) T_SupportsMul -
pythonwrench.collections.reducers.prod(arg0: T_SupportsMul, /, *args: T_SupportsMul, start: T_SupportsMul | None =
1) T_SupportsMul Compute product of elements.
- pythonwrench.collections.reducers.reduce_add(args: Iterable[T_SupportsAdd], /, *, start: T_SupportsAdd) T_SupportsAdd[source]¶
- pythonwrench.collections.reducers.reduce_add(*args: T_SupportsAdd, start: T_SupportsAdd) T_SupportsAdd
-
pythonwrench.collections.reducers.reduce_add(arg0: T_SupportsAdd, /, *args: T_SupportsAdd, start: T_SupportsAdd | None =
None) T_SupportsAdd Reduce elements using “add” operator (+).
- pythonwrench.collections.reducers.reduce_and(args: Iterable[T_SupportsAnd], /, *, start: T_SupportsAnd) T_SupportsAnd[source]¶
- pythonwrench.collections.reducers.reduce_and(*args: T_SupportsAnd, start: T_SupportsAnd) T_SupportsAnd
-
pythonwrench.collections.reducers.reduce_and(arg0: T_SupportsAnd, /, *args: T_SupportsAnd, start: T_SupportsAnd | None =
None) T_SupportsAnd Reduce elements using “and” operator (&).
- pythonwrench.collections.reducers.reduce_matmul(args: Iterable[T_SupportsMatmul], /, *, start: T_SupportsMatmul) T_SupportsMatmul[source]¶
- pythonwrench.collections.reducers.reduce_matmul(*args: T_SupportsMatmul, start: T_SupportsMatmul) T_SupportsMatmul
-
pythonwrench.collections.reducers.reduce_matmul(arg0: T_SupportsMatmul, /, *args: T_SupportsMatmul, start: T_SupportsMatmul | None =
None) T_SupportsMatmul Reduce elements using “mul” operator (*).
- pythonwrench.collections.reducers.reduce_mul(args: Iterable[T_SupportsMul], /, *, start: T_SupportsMul) T_SupportsMul[source]¶
- pythonwrench.collections.reducers.reduce_mul(*args: T_SupportsMul, start: T_SupportsMul) T_SupportsMul
-
pythonwrench.collections.reducers.reduce_mul(arg0: T_SupportsMul, /, *args: T_SupportsMul, start: T_SupportsMul | None =
None) T_SupportsMul Reduce elements using “mul” operator (*).
- pythonwrench.collections.reducers.reduce_or(args: Iterable[T_SupportsOr], /, *, start: T_SupportsOr) T_SupportsOr[source]¶
- pythonwrench.collections.reducers.reduce_or(*args: T_SupportsOr, start: T_SupportsOr) T_SupportsOr
-
pythonwrench.collections.reducers.reduce_or(arg0: T_SupportsOr, /, *args: T_SupportsOr, start: T_SupportsOr | None =
None) T_SupportsOr Reduce elements using “or” operator (|).
-
pythonwrench.collections.reducers.sum(args: Iterable[T_SupportsAdd], /, *, start: T_SupportsAdd =
0) T_SupportsAdd[source]¶ -
pythonwrench.collections.reducers.sum(*args: T_SupportsAdd, start: T_SupportsAdd =
0) T_SupportsAdd -
pythonwrench.collections.reducers.sum(arg0: T_SupportsAdd, /, *args: T_SupportsAdd, start: T_SupportsAdd | None =
0) T_SupportsAdd Compute sum of elements.