 | GeneratorFromFuncTResult Method |
Makes a new generator from a generator function.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TResult> FromFunc<TResult>(
Func<TResult> generator
)
Parameters
- generator
- Type: SystemFuncTResult
The generator function that will be
called to generate new elements.
Type Parameters
- TResult
- The type of elements to generate.
Return Value
Type:
IGeneratorTResult
Exceptions
See Also