ClojureDocs

导航

命名空间

fn

clojure.core

自 1.0 起可用 (源代码)
  • (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