gen.sized: Sized generator creation

View source: R/gen.R

gen.sizedR 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) )

hedgehog documentation built on Nov. 6, 2025, 1:11 a.m.