Hi Michael,

I just checked the version in master and found that the implementation changed on July 14th and it’s now very similar to mine. Enumerable.Empty() now returns a reference to an EmptyPartition that simply returns false for MoveNext(). The difference is that they use a singleton of a class that implements both IEnumerable<T> and IEnumerator<T>. This is possible because there’s no state mutation.

So, future versions will have a much better implementation…

Principal Engineer @ Farfetch - Innovation Lab https://about.me/antao.almada

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store