Is there anything similar in C# to Java's Stream.iterate
? The closest thing I could find was Enumerable.Range
but it is much different.
The reason I'm asking is that I've been just watching some presentation about good programming principles and there was a thread about declarative vs. imperative code. What caught my attention was a way you can generate a pseudo-infinite set of data.