NAME "Perl 5 to 6" Lesson 28 - Currying SYNOPSIS use v6; my &f := &substr.assuming('Hello, World'); say f(0, 2); # He say f(3, 2); # lo say f(7); # World say <a b c>.map: * x 2; # aabbcc say <a b c>.map: *.uc; # ABC for ^10 { print <R G B>.[$_ % *]; # RGBRGBRGBR } DESCRIPTION Currying or partial application is the process of generating a function from another function or method by providing only s
{{#tags}}- {{label}}
{{/tags}}