O(n) Convert a list to a vector. During the operation, the
vector’s capacity will be doubling until the list's contents are in
the vector. Depending on the list’s size, up to half of the vector’s
capacity might be empty. If you’d rather avoid this, you can use
fromListN, which will provide the exact space the list requires
but will prevent list fusion, or
force .
fromList, which will create the vector and then copy it
without the superfluous space.