Anonymous user
Power set: Difference between revisions
→{{header|Scala}}
Line 2,408:
Another option that produces lazy sequence of the sets:
<lang scala>def powerset[A](s: Set[A]) = (
=={{header|Scheme}}==
|
Line 2,408:
Another option that produces lazy sequence of the sets:
<lang scala>def powerset[A](s: Set[A]) = (
=={{header|Scheme}}==
|