Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
          }
        ];
    }
    
  2. or download this
    % perl sieve.pl 97
    509
    ...
    Deep recursion on subroutine "Stream::tail" at Stream.pm line 90.
    Deep recursion on subroutine "Stream::tail" at Stream.pm line 90.
    521
    
  3. or download this
      node(head($s),
           promise { filter($f, tail($s)) });
    
  4. or download this
      node( head( $s ),
            promise {
    ...
                      filter( $f, $s->[ 1 ] )
                    }
          );
    
  5. or download this
    --- Stream.pm.orig    Tue May  3 16:41:37 2005
    +++ Stream.pm    Mon Aug 29 20:00:14 2005
    ...
     
     sub is_promise {
       UNIVERSAL::isa($_[0], 'CODE');
    
  6. or download this
      return
        Stream::node (
    ...
                         prime_filter( &Stream::filter( $not_multiple_of_p
    +, $t ) );
                       }
                     );