clojure.core/fn?¶
Returns true if x implements Fn, i.e. is an object created via fn.
Examples¶
Note by bfontaine¶
Note fn? only tests if something was created using fn, not if it’s a function. Use ifn? for that. Some things are functions even though they weren’t created with fn, such as maps, vectors and keywords.
See also¶
Content from the matching ClojureDocs page, with authors credited on each contribution.