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
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!