Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (7 sloc) 224 Bytes
#!/usr/bin/env perl
use autobox::Core;
use Test::More tests => 3;
my @numbers = ( 1 .. 10 );
is( @numbers->first_index, 0 );
is( @numbers->first_index( sub { $_[0] > 9 } ), 9 );
is( @numbers->first_index( qr/^2/ ), 1 );
Something went wrong with that request. Please try again.