Array -> List
See original GitHub issueWhat about having something like:
Array.prototype.toList = function<T>(): List<T> {
return new List<T>(this);
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Java ArrayList - W3Schools
The ArrayList class is a resizable array, which can be found in the java.util package. The difference between a built-in array and an...
Read more >ArrayList (Java Platform SE 8 ) - Oracle Help Center
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. Parameters: c -...
Read more >ArrayList in Java - GeeksforGeeks
ArrayList is a part of the Java collection framework and it is a class of java.util package. It provides us with dynamic arrays...
Read more >ArrayList in Java - javatpoint
Java ArrayList class uses a dynamic array for storing the elements. It is like an array, but there is no size limit. We...
Read more >Java ArrayList (With Examples) - Programiz
Unlike arrays, arraylists can automatically adjust their capacity when we add or remove elements from them. Hence, arraylists are also known as dynamic...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
C# Array has GetEnumerator() that returns IEnumerable (the one you call List in your code).
Btw as IEnumerable has one extension method called ToList(), you can call
.ToList()
in aArray<T>
.Demo:
>> 2,3,4,5,33
And yes, everything is inside
System.Linq
namespaceYep, I agree that changing native prototypes isn’t a good idea. I open another issue to discuss other topic. You can close this one