fun-map Api
fun-map Api
(fnk args & body)
a function with all its args taken from a map, args are the values of corresponding keys by args' name
a function with all its args taken from a map, args are the values of corresponding keys by args' name
(fun-map m & {:keys [trace-fn]})
Returns a new fun-map.
when put a function as a value in a fun-map, it will be invoked with the map itself and returns the value as the value when referred by the key associated, and only be invoked once.
:trace-fn is a side effect function accept key, value as the underlying function is really invoked
Returns a new fun-map. when put a function as a value in a fun-map, it will be invoked with the map itself and returns the value as the value when referred by the key associated, and only be invoked once. :trace-fn is a side effect function accept key, value as the underlying function is really invoked
Life cycle protocol, signature just like java.io.Closeable, being a protocol gives user ability to extend
Life cycle protocol, signature just like java.io.Closeable, being a protocol gives user ability to extend
(halt! this)
(life-cycle-map m)
returns a fun-map can be shutdown orderly.
any value supports Closeable
in this map will be considered as a
component, it will be closed in reversed order of its invoking.
Notice only accessed components will be shutdown.
returns a fun-map can be shutdown orderly. any value supports `Closeable` in this map will be considered as a component, it will be closed in reversed order of its invoking. Notice only accessed components will be shutdown.
(touch m)
forcefully evaluate all entries of a map
forcefully evaluate all entries of a map
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close