Help for this page

Select Code to Download


  1. or download this
      sub identity is lazy {
         my @i = 1..Inf;
         return @i[shift @_];
      }
    
  2. or download this
       sub returnlazy is lazy {
           return map { 2*n } 1..Inf;
    ...
       }
       my $se = ntheven(17);
       print "The seventeenth even number is $se.\n";