]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/project-euler/043/043.factor
sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate...
[factor.git] / extra / project-euler / 043 / 043.factor
index 4991d65a895c4f7c032ed0f68c134d774c35d23b..ab59843e2155ec30f91ec9cc48a50b6b00cdd990 100644 (file)
@@ -86,7 +86,8 @@ PRIVATE>
 
 : interesting-pandigitals ( -- seq )
     17 candidates { 13 11 7 5 3 2 } [
-        candidates swap cartesian-product [ overlap? ] filter clean
+        candidates swap cartesian-product concat
+        [ overlap? ] filter clean
     ] each [ add-missing-digit ] map ;
 
 PRIVATE>