nustack
ReferenceStd

nu.std.functools

Only reduce is modeled - the one member that is a runtime value fold. partial/cache/decorators are out of the value model (no first-class function value, no effect model yet).

from nu.std.functools import reduce

NameSortSignatureEffectMeaning
reduceReductionreduce(function, iterable, initializer=)pureleft-to-right fold; function reads the accumulator/item via typed AttrRefs (mirrors functools.reduce)