ClojureDocs

Nav

Namespaces

fn

clojure.core

Available since 1.0 (source)
  • (fn name? [params*] exprs*)
  • (fn name? ([params*] exprs*) +)
params => positional-params*, or positional-params* & rest-param
positional-param => binding-form
rest-param => binding-form
binding-form => name, or destructuring-form
 Defines a function.
 See https://clojure.org/reference/special_forms#fn for more information