Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add System.Collections.ICollection implementations to F# list/set/map #473

Open
cloudRoutine opened this issue Oct 12, 2016 · 0 comments
Open
Labels

Comments

@cloudRoutine
Copy link
Owner

Idea 9183845: Add System.Collections.ICollection implementations to F# list/set/map

Status : planned
Submitted by Eirik George Tsarpalis on 8/5/2015 12:00:00 AM
10 votes

ICollection is a useful interface that inherits IEnumerable. Inputs implementing ICollection are utilized by libraries such as LINQ, Nessos.Streams and MBrace in order to optimize partitioning of data. Curiously, none of the F# collections (list/set/map) implement ICollection (however the latter two do implement ICollection, which is a different interface designed for mutable collections). It is currently impossible to extract the length/count of a boxed list/map without performing some sort of reflection, which is not always desirable.
I suggest that future versions of F# core implement this.
See also dotnet/fsharp#570 (comment)

Response

** by fslang-admin on 2/5/2016 12:00:00 AM **

Approved in principle, see my comment below
We will open an RFC for this in due course.
https://github.com/fsharp/FSharpLangDesign/tree/master/RFCs
Don Syme, F# Language Evolution
Archived Uservoice Comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant