Skip to contents

The same as purrr::cross, but doesn't require an extra list()

Usage

expand_list(...)

Arguments

...

Dots

Examples

plnr::expand_list(
  a = 1:2,
  b = c("a", "b")
)
#> [[1]]
#> [[1]]$a
#> [1] 1
#> 
#> [[1]]$b
#> [1] "a"
#> 
#> 
#> [[2]]
#> [[2]]$a
#> [1] 2
#> 
#> [[2]]$b
#> [1] "a"
#> 
#> 
#> [[3]]
#> [[3]]$a
#> [1] 1
#> 
#> [[3]]$b
#> [1] "b"
#> 
#> 
#> [[4]]
#> [[4]]$a
#> [1] 2
#> 
#> [[4]]$b
#> [1] "b"
#> 
#>