Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (12 sloc) 0.311 kb
use Test::More;
use strict;
use warnings;
use autobox::Core;
{
my @array = qw(1 2 3);
my @added = @array->map(sub { ++$_ });
is_deeply \@added, [qw(2 3 4)];
my $arrayref = @array->map( sub { 'foo' } );
is ref $arrayref, 'ARRAY', "Returns arrayref in scalar context";
}
done_testing;
Jump to Line
Something went wrong with that request. Please try again.