Permalink
Browse files

Extend partial function to also handle one-argument calls, refs #1012

Signed-off-by: Michel Alexandre Salim <michel@sylvestre.me>
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information...
1 parent 78d62cd commit c85617be6d502ab2c58a0366f1ea7f0c3cfcdedd @michel-slm michel-slm committed with stuarthalloway Jun 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/clj/clojure/core.clj
View
@@ -2341,6 +2341,7 @@
called, the returned function calls f with args + additional args."
{:added "1.0"
:static true}
+ ([f] f)
([f arg1]
(fn [& args] (apply f arg1 args)))
([f arg1 arg2]

0 comments on commit c85617b

Please sign in to comment.