=item B<grep (\&block)>
+Note that, in both the above, $_ is in scope within the code block, as well as
+being passed as $_[0]. As per CORE::map and CORE::grep, $_ is an alias to
+the list value, so can be used to to modify the list, viz:
+
+ use Moose::Autobox;
+
+ my $foo = [1, 2, 3];
+ $foo->map( sub {$_++} );
+ print $foo->dump;
+
+yields
+
+ $VAR1 = [
+ 2,
+ 3,
+ 4
+ ];
+
=item B<reverse>
=item B<sort (?\&block)>
use strict;
use warnings;
-use Test::More tests => 68;
+use Test::More tests => 69;
BEGIN {
use_ok('Moose::Autobox');
is_deeply($a, [ 4, 2, 6, 78, 101, 2, 3 ], '... original value is unchanged');
+my $b = [1, 2, 3];
+$b->map(sub { $_++ } );
+is_deeply($b, [ 2, 3, 4 ], '... original value is changed');
+
is_deeply(
$a->reverse(),
[ 3, 2, 101, 78, 6, 2, 4 ],