function | since v1.10.514 | Edit |
(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). nav will return the value of clojure.core.protocols/nav.
(defn nav
[coll k v]
(p/nav coll k v))