toList -package:base
Convert an immutable array to a list.
Convert the map to a list of key/value pairs. Subject to
list fusion.
toList (fromList [(5,"a"), (3,"b")]) == [(3,"b"), (5,"a")]
toList empty == []
Convert the set to a list of elements. Subject to list
fusion.
Convert the map to a list of key/value pairs. Subject to
list fusion.
toList (fromList [(5,"a"), (3,"b")]) == [(3,"b"), (5,"a")]
toList empty == []
Convert the set to a list of elements. Subject to list
fusion.
Return a list of this map's keys and elements.
The order is not stable. Use
toAscList for stable ordering.
O(n) Convert a vector to a list.
O(n) Convert a vector to a list.
O(n) Convert a vector to a list.
O(n) Convert a vector to a list.
O(n) Convert a vector to a list.
Return a list of this map's elements. The list is
produced lazily. The order of its elements is unspecified.
Return a list of this set's elements. The list is
produced lazily.
Convert the map to a list of key/value pairs. Subject to
list fusion.
toList (fromList [(5,"a"), (3,"b")]) == [(3,"b"), (5,"a")]
toList empty == []
Convert the set to a list of elements. Subject to list
fusion.
toList xs is the list represented by
xs.
toList obeys the laws:
toList . fromList = id
fromList . toList = id
Evaluating
toList xs may “collapse” the chain of function
composition underlying many
DList functions (
append in
particular) used to construct
xs. This may affect any
efficiency you achieved due to laziness in the construction.
toList xs is the non-empty list represented by
xs.
toList obeys the law:
toList xs = toList (toNonEmpty xs)