LilyFoote / polydivisible

Search for polydivisible numbers using all nonzero digits exactly once.
0 stars 0 forks source link

Add method to Polydivisible to return a concrete list of results #2

Closed LilyFoote closed 9 years ago

LilyFoote commented 9 years ago

Polydivisible.search is a generator method, which is nice for recursion and lazy evaluation. However, it feels awkward to call list or set in the common case of displaying the results. A new method that delegates to search would be nice.