Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reduce ¶
func Reduce[T interface{}, V interface{}](collection []T, iteratee func(accumulator V, e T, index int, collection []T) V, accumulator V) V
Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. The iteratee is invoked with four arguments: (accumulator, value, index|key, collection).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.