Function unlist
is called so that the output is an array (whenever possible) whose names
attribute contains the names of the elements of the list (unchanged, i.e. without adding a number
to identify them as the regular unlist()
function does).
unlist_with_names(alist)
list to unlist.
Whenever possible, an array whose names attribute is set to the names of the elements of the list.