Liking cljdoc? Tell your friends :D

clojure.jvm.tools.analyzer.examples.tail-recursion


find-tail-opsclj

(find-tail-ops tree)

Returns a list of the function calls that are in tail position.

Returns a list of the function calls that are in tail position.
sourceraw docstring

tail-recursive?clj

(tail-recursive? fn-tree)

Returns true if there is a call to the function being defined in a tail position. This does not necessarily mean that the tail call can be replaced with recur, since that does not work with functions of different arity, or across try.

Returns `true` if there is a call to the function being defined
in a tail position.  This does not necessarily mean that the tail call
can be replaced with `recur`, since that does not work with functions of
different arity, or across `try`.
sourceraw docstring

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

× close