]> gitweb.factorcode.org Git - factor.git/commitdiff
lazy-lists: temporarily disable prime number example
authorchris.double <chris.double@double.co.nz>
Thu, 14 Sep 2006 01:40:13 +0000 (01:40 +0000)
committerchris.double <chris.double@double.co.nz>
Thu, 14 Sep 2006 01:40:13 +0000 (01:40 +0000)
Need to implement lapply to get this to work again

contrib/lazy-lists/examples.factor

index c9be993148a2274733496c3f9fbc2afd45cdf0e1..5935ad89bf920ee1a92034f7a1b184366f01b35a 100644 (file)
@@ -43,7 +43,7 @@ IN: lazy-examples
     #! Given a lazy list of numbers, filter multiples of n
     swap [ divisible-by? not ] curry lsubset ;
 
-: primes ( -- list )
-    2 lfrom [ filter-multiples ] lapply ;
+: primes ( -- list )
+!    2 lfrom [ filter-multiples ] lapply ;
 
-: first-ten-primes 10 primes ltake list>array ;
\ No newline at end of file
+: first-ten-primes 10 primes ltake list>array ;
\ No newline at end of file