store/[org.clojure/clojure "1.8.0"] clj::clojure.core/fn?

Official Documentation

Add notes
Arities
==================================================
   [x]

Docstring
==================================================
  Returns true if x implements Fn, i.e. is an object created via fn.

Source

(defn fn?
  "Returns true if x implements Fn, i.e. is an object created via fn."
  {:added "1.0"
   :static true}
  [x] (instance? clojure.lang.Fn x))

Example 1

Edit
(fn? 5)
;; => false

(fn? inc)
;; => true

(fn? (fn []))
;; => true

(fn? #(5))
;; => true

Example 2

Edit
;; Even though maps, sets, vectors and keywords behave as functions:
({:a 1} :a)
;; => 1

;; fn? still returns false for them because they are not created using fn:
(fn? {:a 1})
;; => false

Uses on crossclj