2 ms·
I always liked the elegance of this definition of the power set function in Haskell: powerSet = filterM (const [True, False])
by lgas 7y ago
I always liked the elegance of this definition of the power set function in Haskell:
powerSet = filterM (const [True, False])