gen.run: Run a generator

View source: R/gen.R

gen.runR Documentation

Run a generator

Description

Samples from a generator or list of generators producing a (single) lazy rose tree.

Usage

gen.run(generator, size)

Arguments

generator

A generator

size

The size parameter passed to the generation functions

Details

This is different to calling generarator$unGen(size) in that it also works on (nested) lists of generators and pure values.


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