You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose you would like to analyze the combinations only until you have found a "match" and then stop the iteration.
Wouldn't it be better to use the Visitor pattern for each generated combination to avoid the creation of all combinations in ComplexCombinationIterator#init() method for the iterator in the _resultSet variable?
See: https://en.wikipedia.org/wiki/Visitor_pattern
The text was updated successfully, but these errors were encountered:
Suppose you would like to analyze the combinations only until you have found a "match" and then stop the iteration.
Wouldn't it be better to use the Visitor pattern for each generated combination to avoid the creation of all combinations in ComplexCombinationIterator#init() method for the iterator in the _resultSet variable?
See: https://en.wikipedia.org/wiki/Visitor_pattern
The text was updated successfully, but these errors were encountered: