Liking cljdoc? Tell your friends :D

grape.core


count-codesclj

(count-codes code pattern)

Equivalent to (count (find-codes code pattern)).

Equivalent to (count (find-codes code pattern)).
sourceraw docstring

count-subtreesclj

(count-subtrees tree pattern)

Equivalent to (count (find-subtrees tree pattern).

Equivalent to (count (find-subtrees tree pattern).
sourceraw docstring

find-codeclj

(find-code code pattern)

Equivalent of (first (find-codes code pattern)).

Equivalent of (first (find-codes code pattern)).
sourceraw docstring

find-codesclj

(find-codes code pattern)
(find-codes code pattern options)

Find pieces of code based on pattern. Return a lazy sequence of matchs where each one is a map of :match and :meta, respectively the matching code and its location metadata.

pattern must have been constructed using grape.core/pattern.

options are passed downstream. The only supported one for now is :inline?, which forces matches on a single line.

Find pieces of `code` based on `pattern`. Return a lazy sequence of matchs
where each one is a map of :match and :meta, respectively the matching code
and its location metadata.

`pattern` must have been constructed using grape.core/pattern.

`options` are passed downstream. The only supported one for now is :inline?,
which forces matches on a single line.
sourceraw docstring

find-subtreeclj

(find-subtree tree pattern)

Equivalent of (first (find-subtrees tree pattern)).

Equivalent of (first (find-subtrees tree pattern)).
sourceraw docstring

find-subtreesclj

(find-subtrees tree pattern)

Match a tree given a subtree pattern. Return a lazy sequence of subtrees.

Match a tree given a subtree pattern. Return a lazy sequence of subtrees.
sourceraw docstring

parse-codeclj

Parse code.

Parse code.
sourceraw docstring

patternclj

Parse a piece of code as a pattern to be matched. Any expression after the first one is discarded as well as comments and discarded forms.

Parse a piece of code as a pattern to be matched. Any expression after the
first one is discarded as well as comments and discarded forms.
sourceraw docstring

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

× close