Helper to keep calling a function until a criterion is met #3390
Labels
c: feature
Request for new feature
m: helpers
Something is referring to the helpers module
p: 1-normal
Nothing urgent
s: waiting for user interest
Waiting for more users interested in this feature
Milestone
Clear and concise description of the problem
We often get requests for additional options for methods to further restrict the output in some way, e.g. limiting the length or the range of outputs, or excluding certain types of data
word.ts
contains a single character in the pool #3261Suggested solution
In some cases, rather than add many more options, it may make sense to just repeatedly generate until a certain criterion is met. This could be wrapped in a helpers function.
pseudocode.
Usage:
Alternative
Write the loop manually
Additional context
Note if you provide an impossible condition, this gives an infinite loop. Might need a automatic failure after a certain number of loops.
The text was updated successfully, but these errors were encountered: