Posts tagged csharp
Laziness
- 30 December 2020
Let’s create a lazy list of numbers, only realized as we ask for the values. The IEnumerable interface in conjunction with the yield operator allows this.
Let’s create a lazy list of numbers, only realized as we ask for the values. The IEnumerable interface in conjunction with the yield operator allows this.