Re:Teeing, a hidden gem in the Java API
by lostmsu on Monday May 10, 2021 @05:03AM
(#27104043)
BTW, this is a non-issue with C# 1.0 and later due to `yield return` syntax.
[ Parent
| on HN ]
Sorry, I'm skeptical -- how exactly does a 'yield return' resolve the divergences between functional programming & mutable data structures?
My layman's impression was that 'yield return' was largely syntactic sugar around an iterator, rather similar to Java.