Identify clauses.
What constitutes a clause is context dependent. In a map, it will be a
key/value pair. In a vector it will be a single element, unless the vector
establishes bindings as in let
, in which case it will be a pair of elements.
This code tries to be aware of common functions, data structures and other
forms, and their conventions for establishing clauses.
It also tries to be aware of how comments are usually written in Clojure code. It associates comments 'above' a clause and on the same line 'after' a clause with the clause.
Identify clauses. What constitutes a clause is context dependent. In a map, it will be a key/value pair. In a vector it will be a single element, unless the vector establishes bindings as in `let`, in which case it will be a pair of elements. This code tries to be aware of common functions, data structures and other forms, and their conventions for establishing clauses. It also tries to be aware of how comments are usually written in Clojure code. It associates comments 'above' a clause and on the same line 'after' a clause with the clause.
(identify {:keys [zloc breadth rind pulp]})
Identifies the clauses described by the clause-spec.
Identifies the clauses described by the clause-spec.
(z-take-while zloc f p?)
Returns a sequence of locations in the direction of f
from zloc
that
satisfy p?
.
Returns a sequence of locations in the direction of `f` from `zloc` that satisfy `p?`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close