Are all elements in a list null or fully named lists?
Source:R/all_list_elements.R
is_all_list_elements_null_or_fully_named_list.Rd
Checks if A) `x` is a list, B) All elements in `x` are either null or fully named lists.
Examples
is_all_list_elements_null_or_fully_named_list(data.frame())
#> [1] FALSE
is_all_list_elements_null_or_fully_named_list(list(data.frame()))
#> [1] FALSE
is_all_list_elements_null_or_fully_named_list(list(1, NULL))
#> [1] FALSE
is_all_list_elements_null_or_fully_named_list(list(list(), NULL))
#> [1] FALSE
is_all_list_elements_null_or_fully_named_list(list(list("a" = 1), NULL))
#> [1] TRUE
is_all_list_elements_null_or_fully_named_list(list("a"=1, 2))
#> [1] FALSE