Clojure

Generalize/refactor implementation of PersistentVector/coll-fold

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code

Description

Vector currently contains a specialized implementation of the folding algorithm "split the collection in half until the pieces are small enough". The attached commit lifts out the general strategy so that it can be reused by other collection types amenable to splitting.

CLJ-993 depends on this patch, as it uses the new fold-by-halves function.

Activity

Andy Fingerhut made changes -
Field Original Value New Value
Attachment clj-1045-fold-by-halves-patch-v2.txt [ 11817 ]
Alex Miller made changes -
Labels reducers

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated: