If a list contains numeric singletons, flattens the list.

unlist_if_possible(x)

Arguments

x

List to flatten

Value

A flattened list, or an error if the list does not contain only numeric singletons.