Liking cljdoc? Tell your friends :D

depot.zip

Extra zipper helpers.

Extra zipper helpers.
raw docstring

leftclj

(left loc)

Like [[rewrite-clj.zip/left], but also skip over uneval nodes

Like [[rewrite-clj.zip/left], but also skip over uneval nodes
sourceraw docstring

lib-loc-seqclj

(lib-loc-seq loc)

A sequence of zippers each pointing at a library name.

A sequence of zippers each pointing at a library name.
sourceraw docstring

lib-seqclj

(lib-seq loc)

A sequence of all libraries in the given zipper over deps.edn, returning a seq of [name, coordinate-map] pairs.

A sequence of all libraries in the given zipper over deps.edn, returning a seq
of [name, coordinate-map] pairs.
sourceraw docstring

lib?clj

(lib? loc)

Is the loc at a library name.

Is the loc at a library name.
sourceraw docstring

loc->libclj

(loc->lib loc)

Given a zipper pointing at a library name, return a pair of [name coordinate-map]

Given a zipper pointing at a library name, return a pair of [name
coordinate-map]
sourceraw docstring

map-keysclj

(map-keys f zloc)

Like [[rewrite-clj.zip/map-keys]], but account for uneval nodes.

Like [[rewrite-clj.zip/map-keys]], but account for uneval nodes.
sourceraw docstring

map-valsclj

(map-vals f loc & args)

Like [[rewrite-clj.zip/map-vals]], but account for uneval nodes, and can take extra args.

Like [[rewrite-clj.zip/map-vals]], but account for uneval nodes, and can take extra args.
sourceraw docstring

next-libclj

(next-lib loc)

Find the next loc, depth first, that is a library name.

Find the next loc, depth first, that is a library name.
sourceraw docstring

(right loc)

Like [[rewrite-clj.zip/right]], but also skip over uneval nodes

Like [[rewrite-clj.zip/right]], but also skip over uneval nodes
sourceraw docstring

transform-libsclj

(transform-libs loc f & args)

Transform all coordinate maps in the given zipper over deps.edn. The function f takes a loc pointing at the library name, and returns a new loc.

Transform all coordinate maps in the given zipper over deps.edn. The function f
takes a loc pointing at the library name, and returns a new loc.
sourceraw docstring

zassocclj

(zassoc loc k v)

Like [[clojure.core/assoc]], but for a zipper over a map.

New keys will be added at the end, preserving indentation.

Like [[clojure.core/assoc]], but for a zipper over a map.

New keys will be added at the end, preserving indentation.
sourceraw docstring

zgetclj

(zget loc key)

Like [[clojure.core/get]], but for a zipper over a map.

Takes and returns a zipper (loc).

Like [[clojure.core/get]], but for a zipper over a map.

Takes and returns a zipper (loc).
sourceraw docstring

znextclj

(znext loc)

Like [[rewrite-clj.zip/next]], but also skip over uneval nodes

Like [[rewrite-clj.zip/next]], but also skip over uneval nodes
sourceraw docstring

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

× close