Click or drag to resize
GenExtensionsRetryUntilT Method
Create a generator that calls gen repeatedly until the given condition is fulfilled. The generated value is then returned. Use this combinator with care, since it may result in infinite loops.

Namespace: FsCheckUtils
Assembly: FsCheckUtils (in FsCheckUtils.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax
public static Gen<T> RetryUntil<T>(
	this Gen<T> gen,
	Func<T, bool> p
)

Parameters

gen
Type: GenT
The generator.
p
Type: SystemFuncT, Boolean
The condition to be fulfilled.

Type Parameters

T
The type of elements generated by gen.

Return Value

Type: GenT
A generator that calls gen repeatedly until the given condition is fulfilled.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GenT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also