Liking cljdoc? Tell your friends :D

active.tree


apply-treeclj

(apply-tree ftree tree)
source

approx-valid-tree?clj

(approx-valid-tree? n tree)

checks if tree-shrink contains only trees until depth and width n (trees get to big)

checks if tree-shrink contains only trees until depth and width n (trees get to big)
sourceraw docstring

expandclj

(expand unfolding-f tree)

Apply an additional unfolding function to an existing tree.

The root outcome remains intact, only the shrinks are affected, this applies recursively, so shrinks can only ever be added using this function.

If you want to replace the shrinks altogether, try:

unfold-tree f (outcome old-tree)

 Apply an additional unfolding function to an existing tree.

The root outcome remains intact, only the shrinks are affected, this
applies recursively, so shrinks can only ever be added using this
function.

If you want to replace the shrinks altogether, try:

> unfold-tree f (outcome old-tree)
sourceraw docstring

filter-treeclj

(filter-tree predicate tree)

remove all elements wich doesn't statisfy the predicate. Retrurns a list of trees

remove all elements wich doesn't statisfy the predicate.
Retrurns a list of trees
sourceraw docstring

goclj

(go tree)
source

lazy-cat'clj

(lazy-cat' colls)
source

lazy-treeclj

(lazy-tree strict-outcome strict-shrinks)
source

make-Treeclj

(make-Tree outcome shrinks)

Construct a Tree record.

outcome: access via active.tree/tree-outcome shrinks: access via active.tree/tree-shrinks

Construct a `Tree` record.

`outcome`: access via [[active.tree/tree-outcome]]
`shrinks`: access via [[active.tree/tree-shrinks]]
sourceraw docstring

map-outcomeclj

(map-outcome f tree)
source

map-treeclj

(map-tree f tree)
source

pureclj

(pure x)
source

to-listclj

(to-list tree)

turns a tree into list containing all the elments fo the tree

turns a tree into list containing all the elments fo the tree
sourceraw docstring

Treeclj

source

tree-outcomeclj

(tree-outcome Tree)

Lens for the outcome field from a Tree record. See active.tree/make-Tree.

Lens for the `outcome` field from a [[Tree]] record. See [[active.tree/make-Tree]].
sourceraw docstring

tree-shrinksclj

(tree-shrinks Tree)

Lens for the shrinks field from a Tree record. See active.tree/make-Tree.

Lens for the `shrinks` field from a [[Tree]] record. See [[active.tree/make-Tree]].
sourceraw docstring

tree?clj

(tree? thing)

Is object a Tree record? See active.tree/make-Tree.

Is object a `Tree` record? See [[active.tree/make-Tree]].
sourceraw docstring

unfoldclj

(unfold unfolding-f seed)

Build a 'Tree' from an unfolding function and a seed value.

Build a 'Tree' from an unfolding function and a seed value.
sourceraw docstring

unfold-forestclj

(unfold-forest unfolding-f seed)

Build a list of trees from an unfolding function and a seed value.

Build a list of trees from an unfolding function and a seed value.
sourceraw docstring

valid-tree?clj

(valid-tree? tree)

checks if tree-shrink contains only trees until (don't use this on big trees)

checks if tree-shrink contains only trees until (don't use this on big trees)
sourceraw docstring

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

× close