3 ms·
In Haskell: import Data.List ( subsequences ) powerset = subsequences
by lgas 9y ago
In Haskell:
import Data.List ( subsequences )
powerset = subsequences
- RodgerTheGreat 9y agoIt doesn't contribute much to the conversation to note that your favorite language has a canned procedure for solving an algorithmic problem like this. If you're genuinely interested in demonstrating Haskell's capabilities it would be far more constructive to offer an implementation of such a routine, that it might be compared directly to the others in the article and this thread.