Liking cljdoc? Tell your friends :D
Clojure only.

hara.reflect.core.delegate


delegateclj

(delegate obj)

Allow transparent field access and manipulation to the underlying object.

(def a "hello") (def >a (delegate a))

(mapv char (>a :value)) => [\h \e \l \l \o]

(>a :value world-array) a => "world"

Allow transparent field access and manipulation to the underlying object.

(def a "hello")
(def >a  (delegate a))

(mapv char (>a :value)) => [\h \e \l \l \o]

(>a :value world-array)
a => "world"
raw docstring

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

× close