 | GeneratorNextWhileTSource Method |
Generates the elements from the generator while the predicate applied to elements
hold an return them in an enumerable. After calling this method,
the next element returned by Next (or the current value of Current) will not satisfy
the predicate.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
ExamplesThe enumerable in the following will contain the elements 0, 1, 2, 3:
var list = Generator.Count(100).NextWhile(x => x < 4);
See Also