3 ms·
It seems like a pretty ubiquitous problem. I feel like it's actually just about the least painful in C#, since pretty much every collection interface derives f
by bunderbunder 9y ago
It seems like a pretty ubiquitous problem.
I feel like it's actually just about the least painful in C#, since pretty much every collection interface derives from IEnumerable<T>. It doesn't define have methods for random access or getting the size of the collection, but it is at least immutable, so you can get away with using it quite a bit, maybe even most of the time.
In Java, on the other hand. . . woof.