Skip to contents

Generate lists with contents corresponding to the values generated by the input generators.

Usage

list_(...)

Arguments

...

A set of named or unnamed generators.

Value

A quickcheck_generator object.

Examples

list_(integer_(), logical_()) %>% show_example()
#> [[1]]
#> [1]  8281 -8048   311 -4286  1723  6210  3160  1185
#> 
#> [[2]]
#> [1]  TRUE  TRUE FALSE FALSE FALSE FALSE FALSE  TRUE
#> 
list_(a = any_vector(), b = any_vector()) %>% show_example()
#> $a
#> [1] "2579-07-10 02:12:43 UTC" "1453-04-23 09:27:45 UTC"
#> 
#> $b
#>  [1] FALSE  TRUE  TRUE FALSE  TRUE FALSE FALSE FALSE  TRUE  TRUE
#>