Liking cljdoc? Tell your friends :D

miracle.save


*max-saves*clj

The maximum number of saves per id.

The maximum number of saves per id.
sourceraw docstring

clear-saves!clj

(clear-saves!)
source

destructure-bindingsclj

(destructure-bindings arg-names values)
source

f-savesclj

source

gen-spec-argsclj

(gen-spec-args arg-lists args)
source

gensym?clj

(gensym? s)
source

get-envcljmacro

(get-env)

Returns the locally defined variables and their values.

Returns the locally defined variables and their values.
sourceraw docstring

inspect-mapclj

(inspect-map map-to-print
             &
             {:keys [desired-level safe-count]
              :or {desired-level 4 safe-count 10}})
source

ldclj

(ld id)
(ld id pos)

Loads the local bindings that have been saved using save with id as parameter.

Loads the local bindings that have been saved using `save` with `id` as parameter.
sourceraw docstring

new*clj

(new* ref id)
(new* ref id bindings)

Creates a new save at id, with bindings containing the local bindings from where save was called.

Creates a new save at `id`, with `bindings` containing the local bindings from where `save` was called.
sourceraw docstring

(print-saves id)
source

savecljmacro

(save & args)

Used to save all local bindings, takes an identifier as a parameter. The identifier is used with ld in order to load the local bindings where save was called.

Used to save all local bindings, takes an identifier as a parameter.
The identifier is used with `ld` in order to load the local bindings where `save` was called.
sourceraw docstring

save-fnclj

(save-fn ref bindings id)
source

save-ns*clj

(save-ns* ns)

Applies save-var* to all function vars in a namespace.

Applies `save-var*` to all function vars in a namespace.
sourceraw docstring

save-var*clj

(save-var* v)
(save-var* ns s)

Applies save-wrapper to a var, which means that whenever that var is called, it will save all args and return values of that function. Check save-wrapper for more information.

Applies `save-wrapper` to a var, which means that whenever that var is called,
it will save all args and return values of that function.
Check `save-wrapper` for more information.
sourceraw docstring

save-wrapperclj

(save-wrapper f-var f args)

f-var should be a var or symbol holding a IFn, and f the actual function. Returns a function that will save all args and return values when being called. The data will be stored in f-saves.

f-var should be a var or symbol holding a IFn, and f the actual function.
Returns a function that will save all args and return values when being called.
The data will be stored in `f-saves`.
sourceraw docstring

savesclj

source

unsave-ns*clj

(unsave-ns* ns)

Applies unsave-var* to all function vars in a namespace.

Applies `unsave-var*` to all function vars in a namespace.
sourceraw docstring

unsave-var*clj

(unsave-var* v)
(unsave-var* ns s)

The opposite of save-var*, restores the var to its original state.

The opposite of `save-var*`, restores the var to its original state.
sourceraw docstring

which-argsclj

(which-args arg-names-list n-args)

Takes a list of arg-names, e.g. ([x] [x y] [x y {:keys [a b]}]) and a number. Returns the arg-names that matches n-args.

Takes a list of arg-names, e.g. ([x] [x y] [x y {:keys [a b]}])
and a number.
Returns the arg-names that matches n-args.
sourceraw docstring

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

× close