Liking cljdoc? Tell your friends :D
Clojure only.

clojure.datafy


datafyclj

(datafy x)

Attempts to return x as data. If :clojure.datafy/datafy is present as metadata of x, it will be called with x as an argument, else datafy will return the value of clojure.protocols/datafy. If the value has been transformed and the result supports metadata, :clojure.datafy/obj will be set on the metadata to the original value of x.

Attempts to return x as data. If :clojure.datafy/datafy is present
as metadata of x, it will be called with x as an argument, else
datafy will return the value of clojure.protocols/datafy. If the
value has been transformed and the result supports
metadata, :clojure.datafy/obj will be set on the metadata to the
original value of x.
sourceraw docstring

(nav coll k v)

Returns (possibly transformed) v in the context of coll and k (a key/index or nil). Callers should attempt to provide the key/index context k for Indexed/Associative/ILookup colls if possible, but not to fabricate one e.g. for sequences (pass nil). If :clojure.datafy/nav is present as metadata on coll, it will be called with coll, k and v as arguments, else nav will call :clojure.protocols/nav.

Returns (possibly transformed) v in the context of coll and k (a
key/index or nil). Callers should attempt to provide the key/index
context k for Indexed/Associative/ILookup colls if possible, but not
to fabricate one e.g. for sequences (pass nil). If :clojure.datafy/nav is
present as metadata on coll, it will be called with coll, k and v as
arguments, else nav will call :clojure.protocols/nav.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close