Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c85617be6d502ab2c58a0366f1ea7f0c3cfcdedd 1 parent 78d62cd
Michel Alexandre Salim michel-slm authored stuarthalloway committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/clj/clojure/core.clj
1  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]
Please sign in to comment.
Something went wrong with that request. Please try again.