(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)
(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)
(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
(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]]
(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
(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]].
(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]].
(tree? thing)
Is object a Tree
record? See active.tree/make-Tree
.
Is object a `Tree` record? See [[active.tree/make-Tree]].
(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.
(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.
(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)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close