Skip to main content
Log in

Mojo function

reduce

reduce[: origin.set, //, T: AnyTrivialRegType, func: fn[ImmutableOrigin](a: $1|1, b: IntTuple[$0]) capturing -> $1|1](t: IntTuple[origin], initializer: T) -> T

reduce[: origin.set, //, reducer: fn[ImmutableOrigin, ImmutableOrigin](a: IntTuple[$0], b: IntTuple[$1]) capturing -> IntTuple](t: IntTuple[origin]) -> IntTuple