3 ms·
yeah, raku takes the perl functional heritage and adds a bit my $logger = -> $m { say $m; $m }; my $add-five = -> $x { $x + 5 }; my $add-five-and-log = $
by librasteve 3y ago
yeah, raku takes the perl functional heritage and adds a bit
my $logger = -> $m { say $m; $m };
my $add-five = -> $x { $x + 5 };
my $add-five-and-log = $add-five o $logger;
say $add-five-and-log(25); # Prints 25, then prints 30
https://dev.to/rawleyfowler/functional-programming-with-raku-9ib https://dev.to/rawleyfowler/functional-programming-with-raku...