Liking cljdoc? Tell your friends :D

zpst.zloc


count-newlinesclj

(count-newlines s)

Given a string, count the newlines in the string.

Given a string, count the newlines in the string.
sourceraw docstring

faffclj

source

find-argsclj

(find-args zloc-focus zloc-root)

Given a zloc of the top of a function, do what we can to find the zloc of the args. Return nil if we can't.

Given a zloc of the top of a function, do what we can to find
the zloc of the args. Return nil if we can't.
sourceraw docstring

find-args-from-focusclj

(find-args-from-focus zloc)

Given a zloc of a section of a function on which to focus, work back up the function and return the argument vector.

Given a zloc of a section of a function on which to focus, work
back up the function and return the argument vector.
sourceraw docstring

find-fnclj

(find-fn source-str fn-name lineno fn-name-on-line)

Given a fn-name and a line number in that function, find fn-name-on-line on that line and return the zloc which invokes it and the root of the zipper, as [zloc zloc-root].
If this can't be found, return nil. Both fn-names are strings.

Given a fn-name and a line number in that function, find
fn-name-on-line on that line and return the zloc which invokes
it and the root of the zipper, as [zloc zloc-root].  
If this can't be found, return nil. Both fn-names are strings.
sourceraw docstring

fn-zloc?clj

(fn-zloc? zloc)

Try and determine if this zloc points to a function. Criteria: the meta data for the symbol exists and has :arglists and the zloc is at the left end of a list.

Try and determine if this zloc points to a function.  Criteria:
the meta data for the symbol exists and has :arglists and the zloc
is at the left end of a list.
sourceraw docstring

follow-pathxclj

(follow-pathx zloc-root path-seq n)

Given a zloc and a path, follow the path for n levels.

Given a zloc and a path, follow the path for n levels.
sourceraw docstring

get-frame-mapclj

(get-frame-map options zloc zloc-root zcall)

Given zippers for a function and the call site inside of the function, see if we can find the formal arguments (i.e., params) for the function and return everything in a convenient map.

Given zippers for a function and the call site inside of the function,
see if we can find the formal arguments (i.e., params) for the function 
and return everything in a convenient map.
sourceraw docstring

linen-oneclj

(linen-one zloc n)

Return the elements of a single line in a vector of zlocs.

Return the elements of a single line in a vector of zlocs.
sourceraw docstring

match-fnclj

(match-fn fn1 fn2)

Given two strings, see if the function names match. Tries basic = and also tries to remove the namespace if it appears.

Given two strings, see if the function names match.  Tries basic =
and also tries to remove the namespace if it appears.
sourceraw docstring

newlinesclj

(newlines zloc)

If the zloc contains newlines, return the count, otherwise return 0. [<count> zloc] where zloc is nil if there isn't anything

If the zloc contains newlines, return the count, otherwise return
0. [<count> zloc] where zloc is nil if there isn't anything
sourceraw docstring

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

× close