Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (9 sloc) 231 Bytes
use Test::More qw(no_plan);
use strict;
use warnings;
use autobox::Core;
my $times = sub { $_[0] * $_[1] };
my $times_two = $times->curry(2);
my $times_four = $times->curry(4);
is $times_two->(5), 10;
is $times_four->(5), 20;
Something went wrong with that request. Please try again.