Liking cljdoc? Tell your friends :D

zippo.core


->loc-predclj

(->loc-pred node-pred)

Turn a node predicate into a location predicate.

Turn a node predicate into a location predicate.
sourceraw docstring

coll-make-nodeclj

(coll-make-node node children)
source

coll-zipclj

(coll-zip root)

A zipper to navigate through any (nested) collection.

A zipper to navigate through any (nested) collection.
sourceraw docstring

loc-childrenclj

(loc-children loc)

Return all the children locations.

Return all the children locations.
sourceraw docstring

loc-findclj

(loc-find loc loc-pred)

Find the first location matches a predicate.

Find the first location matches a predicate.
sourceraw docstring

loc-find-allclj

(loc-find-all loc loc-pred)

Find all the locations that match a predicate.

Find all the locations that match a predicate.
sourceraw docstring

loc-layersclj

(loc-layers loc)

For a given location, return a lazy seq of its 'layers', e.g. children, the children of children and so on.

For a given location, return a lazy seq of its 'layers',
e.g. children, the children of children and so on.
sourceraw docstring

loc-seqclj

(loc-seq loc)

Get a lazy, finite seq of locations.

Get a lazy, finite seq of locations.
sourceraw docstring

loc-seq-breadthclj

(loc-seq-breadth loc)

Return a lazy seq of locations in breadth-first direction (left to right, down, left to right and so on).

Return a lazy seq of locations in breadth-first direction
(left to right, down, left to right and so on).
sourceraw docstring

loc-updateclj

(loc-update loc loc-pred loc-fn & args)

Update locations that match the loc-pred function with the loc-fn functions and the rest arguments. Returns the last (end) location.

Update locations that match the `loc-pred` function
with the `loc-fn` functions and the rest arguments.
Returns the last (end) location.
sourceraw docstring

loc-update-allclj

(loc-update-all loc loc-fn & args)

Update all the locations with the loc-fn and the rest arguments. Returns the last (end) location.

Update all the locations with the `loc-fn` and the rest
arguments. Returns the last (end) location.
sourceraw docstring

locs-childrenclj

(locs-children locs)

For a seq of locations, return their concatenated children.

For a seq of locations, return their concatenated children.
sourceraw docstring

lookup-downclj

(lookup-down loc loc-pred)

Go down until a location matches a predicate.

Go down until a location matches a predicate.
sourceraw docstring

lookup-leftclj

(lookup-left loc loc-pred)

Go left until a location matches a predicate.

Go left until a location matches a predicate.
sourceraw docstring

lookup-rightclj

(lookup-right loc loc-pred)

Go right until a location matches a predicate.

Go right until a location matches a predicate.
sourceraw docstring

lookup-upclj

(lookup-up loc loc-pred)

Go up until a location matches a predicate.

Go up until a location matches a predicate.
sourceraw docstring

node-updateclj

(node-update loc node-pred node-fn & args)

Like loc-update but acts on nodes. Updates all the nodes that match node-pred with the node-fn function and the rest arguments.

Like `loc-update` but acts on nodes. Updates all the nodes
that match `node-pred` with the `node-fn` function
and the rest arguments.
sourceraw docstring

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

× close