Returns an immutable list of elements, in argument order, duplicates kept. null and
undefined are stored. Every method that would change the list, its views or its cursors
throws UnsupportedOperationError.
For many elements, use copyOfList: spreading a large array into a call fails at the
call site.
Returns an immutable list of
elements, in argument order, duplicates kept.nullandundefinedare stored. Every method that would change the list, its views or its cursors throwsUnsupportedOperationError.For many elements, use copyOfList: spreading a large array into a call fails at the call site.
Time: O(n) for
nelements.