Back
nav (clj)
(source)protocol
(nav coll k v)
return (possibly transformed) v in the context of coll and k (a key/index or nil),
defaults to returning v.
Examples
thheller/shadow-cljs
(ns shadow.remote.runtime.cljs.js-builtins
(:require
[goog.object :as gobj]
[clojure.core.protocols :as p]))
{`p/nav (fn [coll k v]
(gobj/get o k))})))