Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            'map (bare)'   => sub { map { $_ += 1 } @a; },
        }
    );
    
  2. or download this
                 s/iter map (assign)   map (bare)      foreach
    map (assign)   2.06           --         -40%         -76%
    map (bare)     1.23          67%           --         -59%
    foreach       0.501         311%         146%           --