A class supporting filtered operations.
Put a label on the generator to make test reports clearer
Put a label on the generator to make test reports clearer
Returns a new property that holds if and only if both this and the given generator generates the same result, or both generators generate no result.
Evaluate this generator with the given parameters
Create a new generator that uses this generator to produce a value that fulfills the given condition.
Create a new generator that uses this generator to produce a value that fulfills the given condition. If the condition is not fulfilled, the generator fails (returns None).
Create a new generator by flat-mapping the result of this generator
Put a label on the generator to make test reports clearer
Create a new generator by mapping the result of this generator
Create a generator that calls this generator repeatedly until the given condition is fulfilled.
Create a generator that calls this generator 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.
Should be a copy of R.
Should be a copy of R.sieve. Used internally in Gen when some generators with suchThat-claues are created (when R is not available). This method actually breaks covariance, but since this method will only ever be called with a value of exactly type T, it is OK.
Create a new generator that uses this generator to produce a value that fulfills the given condition.
Create a new generator that uses this generator to produce a value that fulfills the given condition. If the condition is not fulfilled, the generator fails (returns None). This method is identical to [Gen.filter].
Creates a non-strict filtered version of this generator.
Put a label on the generator to make test reports clearer
Put a label on the generator to make test reports clearer