Clojure

`reductions` reducer

Details

  • Type: Feature Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Labels:

Description

It would be nice to have a reducers implementation of the core `reductions` function.

Initial implementation attempt included. This version requires an initial reduction value parameter (vs using (f)) and includes that initial value in the final reduction. I'm not certain either of these decisions is optimal, but results in a function which most closely mimics `clojure.core/reductions`.

Activity

Alex Miller made changes -
Field Original Value New Value
Labels reducers
Alex Miller made changes -
Issue Type Enhancement [ 4 ] Feature [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: