gen.sized {hedgehog}R Documentation

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

gen.sized ( function(e) gen.element(1:e) )

[Package hedgehog version 0.1 Index]