function | since v0.0-1211 | clojure.core/ifn? | Edit |
(ifn? f)
Returns true if f
implements the IFn
protocol, false otherwise.
Functions, keywords, map, sets, and vectors can be called as functions.
Returns true if f returns true for fn? or satisfies IFn.
(defn ifn?
[f]
(or (fn? f) (satisfies? IFn f)))