| CARVIEW |
Select Language
HTTP/2 200
date: Thu, 22 Jan 2026 17:32:09 GMT
content-type: text/html;charset=utf-8
server: nginx/1.24.0 (Ubuntu)
set-cookie: ring-session=PlDsv6PUc791OQ9qTRBeLf1q5a3KDf0ODCx7z%2FmKJeTA%2Fl5yuOPHsChoPCntu4nC3zvwcedrEcuaY4zjwkcGczhqQP4Gm1lf%2FJl%2FBJfnr2E%3D--x0MOKxNudcTe8CF1bpnCB%2FIwiogc5tqA08ZHqR60dkI%3D;Path=/;HttpOnly
content-encoding: gzip
defmulti - clojure.core | ClojureDocs - Community-Powered Clojure Documentation and Examples
ClojureDocs
Nav
Namespaces
- clojure.core
- clojure.core.async
- clojure.core.logic
- clojure.core.logic.fd
- clojure.core.logic.pldb
- clojure.core.protocols
- clojure.core.reducers
- clojure.core.server
- clojure.data
- clojure.data.csv
- clojure.datafy
- clojure.edn
- clojure.inspector
- clojure.instant
- clojure.java.browse
- clojure.java.io
- clojure.java.javadoc
- clojure.java.process
- clojure.java.shell
- clojure.main
- clojure.math
- clojure.pprint
- clojure.reflect
- clojure.repl
- clojure.repl.deps
- clojure.set
- clojure.spec.alpha
- clojure.stacktrace
- clojure.string
- clojure.template
- clojure.test
- clojure.test.junit
- clojure.test.tap
- clojure.tools.deps.interop
- clojure.walk
- clojure.xml
- clojure.zip
defmulti
- (defmulti name docstring? attr-map? dispatch-fn & options)
Creates a new multimethod with the associated dispatch function. The docstring and attr-map are optional. Options are key-value pairs and may be one of: :default The default dispatch value, defaults to :default :hierarchy The value used for hierarchical dispatch (e.g. ::square is-a ::shape) Hierarchies are type-like relationships that do not depend upon type inheritance. By default Clojure's multimethods dispatch off of a global hierarchy map. However, a hierarchy relationship can be created with the derive function used to augment the root ancestor created with make-hierarchy. Multimethods expect the value of the hierarchy option to be supplied as a reference type e.g. a var (i.e. via the Var-quote dispatch macro #' or the var special form).
© Rich Hickey. All rights reserved. Eclipse Public License 1.0