Learn R Programming

hedgehog (version 0.2)

gen.sized: Sized generator creation

Description

Helper for making a gen with a size parameter. Pass a function which takes an int and returns a gen.

Usage

gen.sized(f)

Arguments

f

the function, taking a size and returning a generator

Examples

Run this code
gen.sized ( function(e) gen.element(1:e) )

Run the code above in your browser using DataLab