Returns the combination of the elements of collection according to function.
An error is signaled if collection is empty.
reduce1 is similar to reduce, except that the first element of collection is taken as the initial value, and all the remaining elements of collection are processed as if by reduce. (In other words, the first value isn’t used twice.)
For unstable collections, “first” element effectively means “an element chosen at random.” Processing is done in the natural order for collection.
reduce1 (\+, #(1, 2, 3, 4, 5))
⇒ 15
open
| function | An instance of <function>. |
| collection | An instance of <collection>. |
| value | An instance of <object>. |