If the same name is used for several items (e.g. "total"),
only first item is left in the result.
shrinkList(list)
Arguments
Value
a shorter list
Examples
l <- list(
total = 1,
total = 1,
unlabel = c(4,5))
shrinkList(l)
#> $total
#> [1] 1
#>
#> $unlabel
#> [1] 4 5
#>