ifn?

functionsince v0.0-1211 clojure.core/ifn?Edit
(ifn? f)

Details:

Returns true if f implements the IFn protocol, false otherwise.

Functions, keywords, map, sets, and vectors can be called as functions.


See Also:


Source docstring:
Returns true if f returns true for fn? or satisfies IFn.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ifn?
  [f]
  (or (fn? f) (satisfies? IFn f)))