]> gitweb.factorcode.org Git - factor.git/commitdiff
project-euler.186: fix, I guess it's been broken for awhile.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 15 Feb 2018 01:15:43 +0000 (17:15 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 15 Feb 2018 01:15:43 +0000 (17:15 -0800)
extra/project-euler/186/186.factor

index 922a28cb22c51f21a0212937bc635b545f0a3129..ea7fad29ce5d2443a75b0b2fe29abb2050b35740 100644 (file)
@@ -65,7 +65,7 @@ IN: project-euler.186
     ] if ;
 
 : <relation> ( n -- unionfind )
-    <disjoint-set> [ [ add-atom ] curry each ] keep ;
+    <iota> <disjoint-set> [ [ add-atom ] curry each ] keep ;
 
 : euler186 ( -- n )
     <generator> 0 1000000 <relation> (p186) ;