Next Program Repair Shop 74

Higher-order functions

        sub compare_by_fc {
          my @file_list;
          my @fc_LoL = group_items( \&compare, @file_list );
          return @fc_LoL;
        }
            push @fc_LoL, compare_by_fc (@$array_ref);
            push @fc_LoL, group_items ( \&compare, @$array_ref);

my $cmp = sub { my ($a, $b) = @_;

                   $first_block_by_name{ $a } cmp $first_block_by_name{ $b }
                  };

my @return_LoL = group_items($cmp, @file_list);


Next Copyright © 2006 M. J. Dominus