Clojure

group-by as reducer / reduction fn

Details

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

Description

Whilst working on a query engine heavily based on transducers, I noticed that it'd be great to have group-by able to be used as reduction fn. The attached patch adds a single arity version to group-by which enables this use case and also includes a few tests.

Activity

Hide
Karsten Schmidt added a comment -

patch w/ described changes

Show
Karsten Schmidt added a comment - patch w/ described changes

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: