]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/regexp/disambiguate/disambiguate.factor
Removing integers-as-sequences
[factor.git] / basis / regexp / disambiguate / disambiguate.factor
index fcde135cf887c0fb1af245ef8332f1d634624f91..33b2ded448e53ad803265f0118ccc864c5449a79 100644 (file)
@@ -11,9 +11,7 @@ TUPLE: parts in out ;
     zip [ first ] partition [ values ] bi@ parts boa ;
 
 : powerset-partition ( sequence -- partitions )
-    [ length [ 2^ ] keep ] keep '[
-        _ <bits> _ make-partition
-    ] map rest ;
+    [ length [ 2^ iota ] keep ] keep '[ _ <bits> _ make-partition ] map rest ;
 
 : partition>class ( parts -- class )
     [ out>> [ <not-class> ] map ]