Liking cljdoc? Tell your friends :D

robertluo.fun-map.core

implementation of fun-maps.

a fun-map delegates its storage to underlying map m, m stores k,v pair with value wrapped inside a wrapper, when requested an entry from a fun-map, instead of returning map entry like an ordinary map, it returns a special version of entry, evaluate it's value by invoking the wrapper.

implementation of fun-maps.

a fun-map delegates its storage to underlying map m,
m stores k,v pair with value wrapped inside a wrapper,
when requested an entry from a fun-map, instead of
returning map entry like an ordinary map, it returns
a special version of entry, evaluate it's value by
invoking the wrapper.
raw docstring

delegate-mapclj

(delegate-map wrap-fn m)
source

delegate-map*clj

(delegate-map* wrapper-fn m)

create a fun-map with wrapper-fn to wrap values of underlying m

create a fun-map with wrapper-fn to wrap values of underlying m
sourceraw docstring

function-wrapperclj

(function-wrapper trace-fn k v)

returns a FunctionWrapper wraps value v

returns a FunctionWrapper wraps value v
sourceraw docstring

ValueWrappercljprotocol

rawclj

(raw this)

returns the raw value of the wrapper

returns the raw value of the wrapper

unwrapclj

(unwrap this m)

unwrap the real value from a wrapper

unwrap the real value from a wrapper
source

wrapped-entryclj

(wrapped-entry m entry)
source

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

× close