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

Hide
Andy Fingerhut added a comment -

clj-1045-fold-by-halves-patch-v2.txt dated Jan 25 2013 is identical to fold-by-halves.patch dated Aug 18 2012, except it updates one line of context changed by a recent commit to Clojure master.

Show
Andy Fingerhut added a comment - clj-1045-fold-by-halves-patch-v2.txt dated Jan 25 2013 is identical to fold-by-halves.patch dated Aug 18 2012, except it updates one line of context changed by a recent commit to Clojure master.
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: