R/utils.R
scalar_nlist.Rd
Filters a named list so only scalar elements remain.wiby its names.
scalar_nlist(x)
The named list to sort.
The sorted named list.
scalar_nlist(list(y = 2, x = 1, a = c(10, 1))) #> $y #> [1] 2 #> #> $x #> [1] 1 #>