filter Materialised
Generates size values, filters the resulting Sequence so that only elements matching the given predicate remain and creates a new OrderedArgsGenerator based on it.
Return
The resulting OrderedArgsGenerator which generates only values for which the given predicate returns true.
Since
2.0.0
Parameters
which should return true for a given value if it shall be kept in the sequence, otherwise false.
The type of values generated by this OrderedArgsGenerator.
Deprecated (with error)
" Materialising means fixing the undefined/random part of an SemiOrderedArgsGenerator. Normally you do not want to turn an SemiOrderedArgsGenerator into an OrderedArgsGenerator as you basically loose the randomness you added in the first place. If you still want to do this, then use: let { g -> g.generate().take(g.size) }.filter(predicate).toList().let(ordered::fromList)
Replace with
let { g -> g.generate().take(g.size) }.filter(predicate).toList().let(ordered::fromList)