(change-coll zloc coll)
Change collection to specified collection
Change collection to specified collection
(cycle-coll zloc)
Cycles collection between vector, list, map and set
Cycles collection between vector, list, map and set
(expand-let zloc uri db)
(expand-let zloc expand-to-top? uri db)
Expand the scope of the next let up the tree.
Expand the scope of the next let up the tree.
(find-let-form zloc uri db)
Finds a let-form that would be valid to move zloc to
Finds a let-form that would be valid to move zloc to
(introduce-let zloc binding-name)
Adds a let around the current form.
Adds a let around the current form.
(move-to-let zloc uri db binding-name)
Adds form and symbol to a let further up the tree
Adds form and symbol to a let further up the tree
(prepend-preserving-comment existing-loc new-loc)
Returns an edit that places new-loc
before existing-loc
, keeping any
comments or whitespace that preceed existing-loc
close to it.
Returns an edit that places `new-loc` before `existing-loc`, keeping any comments or whitespace that preceed `existing-loc` close to it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close