Clojure

A left-to-right-variant of `comp`

Details

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

Description

The function composition function `comp` is quite inefficient in cases like `(apply comp large-seq-of-fns)`, because its arity-greater-than-3 version reverses the seq.

I would be great if there was an alternative `comp*` (or whatever) function which is just like `comp` but composes left-to-right.

Activity

Tassilo Horn made changes -
Field Original Value New Value
Attachment 0001-CLJ-1010-Add-a-left-to-right-version-of-comp-comp.patch [ 11307 ]
Tassilo Horn made changes -
Labels enhancement enhancement patch
Andy Fingerhut made changes -
Patch Code [ 10001 ]
Alex Miller made changes -
Labels enhancement patch

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: