Antão Almada
1 min readSep 10, 2018

--

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…

--

--

No responses yet