Help for this page

Select Code to Download


  1. or download this
    sub seq1 {
        my $r;
    ...
        push @R, $r if length $r;
        @R;
    }
    
  2. or download this
    sub seq2 {
        my @x = shift =~ m/((.)\2*)/g;
        map $x[2*$_], 0..@x/2-1;
    }