Description Usage Arguments Examples
This will choose between the recursive and non-recursive terms, while shrinking the size of the recursive calls.
1 | gen.recursive(tails, heads)
|
tails |
a list of generators which should not contain recursive terms. |
heads |
a list of generator which may contain recursive terms. |
1 2 3 4 5 6 7 8 9 10 11 12 | # Generating a tree with integer leaves
treeGen <-
gen.recursive(
# The non-recursive cases
list(
gen.int(100)
)
, # The recursive cases
list(
gen.list( treeGen )
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.