(filter-commands ns pred)
get all the functions as commands in the namespace ns if statify (prd var-fn) is true return a map that key is function-name and value is a command
get all the functions as commands in the namespace ns if statify (prd var-fn) is true return a map that key is function-name and value is a command
(get-commands ns)
(get-commands ns & var-fns)
get the specify var functions as commands in the namespace ns if the var-fns is null then get all public functions as commands. return a map that key is function-name and value is a command
get the specify var functions as commands in the namespace ns if the var-fns is null then get all public functions as commands. return a map that key is function-name and value is a command
(mk-command cmd-str var-f)
make a command that can be executed cmd-str : string of the command var-f : the actutal execute function of the command
make a command that can be executed cmd-str : string of the command var-f : the actutal execute function of the command
(var-fn? x)
check whether a var is a function. if the var has not been bound, then will throw a exception. so catch it
check whether a var is a function. if the var has not been bound, then will throw a exception. so catch it
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close