Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Open up Microsoft.FSharp.Collections.IEnumerator #633
Open up Microsoft.FSharp.Collections.IEnumerator
I propose we allow access to the Microsoft.FSharp.Collections.IEnumerator functions in FSharp.Core
The existing way of approaching this problem in F# is make your own, or nest Seqs which is slower.
Pros and Cons
The advantages of making this adjustment to F# are having combinators to cleanly handle IEnumerator
The disadvantages of making this adjustment to F# are that you'd probably have to wrap them in more checks, and maybe want to pull out the shared functionality with Seq so the checks wouldn't be done twice. It also encourages using mutable stuff, but I feel we're way past this being an issue in F#.
Estimated cost (M):
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
For the record I'm just talking about the combinators in seq.fs.
@dsyme I agree it's not frequently used and for good reason but it's in there though, because it's fast and makes for good primitives. These are tried and true features and could be used to make some existing nasty fast code much nicer.
Sorry for the silly question, but do we have access to
I'd definitely recommend a separate library for these rather than cracking open more internals and expanding the surface area of FSharp.Core.