R/get_size.R
get_size.Rd
This function lazily retrieves the total number of elements in a Cartesian product
get_size(l)
A named list with the combinations of the Cartesian product.
A number.
l <- list(color = c("Red", "Blue", "Yellow"), shape = c("Square", "Circle")) get_size(l) #> [1] 6