3 ms·
How does C# handle this?
by cutler 4y ago
How does C# handle this?
- orthoxerox 4y agoIt doesn't. It has ICollection<T>, which is a collection of known finite length, and IList<T>, which adds the requirement that the items can be accessed via their ordinal index, thus implicitly defining the encounter order as well. It's probably the Blub paradox speaking, but I haven't felt the need for an ISequencedCollection<T> in C#.
- maxfurman 4y agoICollection also already has many of the convenience methods from this JEP, like .First() and .Last()