Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.21
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (8 sloc) 0.204 kb
use Test::More qw(no_plan);
use strict;
use warnings;
use autobox::Core;
my @array = qw(1 2 3);
my @added;
@array->foreach( sub { push @added, $_[0] + 1 } );
is_deeply [ sort @added ], [ qw(2 3 4) ];
Jump to Line
Something went wrong with that request. Please try again.