Skip to content

Commit dac3c96

Browse files
committed
0.10.6 - at long last, ap!
1 parent b6bae5a commit dac3c96

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject org.flatland/useful "0.10.5"
1+
(defproject org.flatland/useful "0.10.6"
22
:description "A collection of generally-useful Clojure utility functions"
33
:license {:name "Eclipse Public License - v 1.0"
44
:url "http://www.eclipse.org/legal/epl-v10.html"

src/flatland/useful/fn.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,10 @@
169169
(if (= args (get cache :args ::not-found))
170170
cache
171171
{: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

Comments
 (0)