]> gitweb.factorcode.org Git - factor.git/commitdiff
regexp.minimize: use sort-pair instead of natural-sort.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 2 Apr 2013 23:54:25 +0000 (16:54 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 2 Apr 2013 23:54:25 +0000 (16:54 -0700)
basis/regexp/minimize/minimize.factor

index e454a99c8bf7413cd336b2e8a4434e5e1b6db43b..a8dbaa7ed3bd13c5541a5a404ba30eb37f7a7da3 100644 (file)
@@ -34,7 +34,7 @@ IN: regexp.minimize
     ] each out ;
 
 : same-partition? ( s1 s2 partitions -- ? )
-    { [ [ 2array natural-sort ] dip key? ] [ drop = ] } 3|| ;
+    { [ [ sort-pair 2array ] dip key? ] [ drop = ] } 3|| ;
 
 : assemble-values ( assoc1 assoc2 -- values )
     dup keys '[ _ swap [ at ] curry map ] bi@ zip ;