Short version with very little "line noise":
get.words.sum.say;
Reduction operator [+], and say as a function:
[+]
say
say [+] get.words;
Long version:
my ($a, $b) = $*IN.get.split(" "); say $a + $b;
Last updated 1 year ago