We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ap
1 parent b6bae5a commit dac3c96Copy full SHA for dac3c96
project.clj
@@ -1,4 +1,4 @@
1
-(defproject org.flatland/useful "0.10.5"
+(defproject org.flatland/useful "0.10.6"
2
:description "A collection of generally-useful Clojure utility functions"
3
:license {:name "Eclipse Public License - v 1.0"
4
:url "http://www.eclipse.org/legal/epl-v10.html"
src/flatland/useful/fn.clj
@@ -169,3 +169,10 @@
169
(if (= args (get cache :args ::not-found))
170
cache
171
{:args args, :value (apply f args)})))))))
172
+
173
+(defn applied
174
+ "A version of f that uses apply on its args."
175
+ [f]
176
+ (partial apply f))
177
178
+(def ap "A shorthand version of applied" applied)
0 commit comments