Challenge 261

Run Settings
LanguageRaku
Language Version
Run Command
sub element-digit-sum(@array) { @array.sum - @array.map(*.comb.sum).sum } say element-digit-sum [1, 2, 3, 45]; say element-digit-sum [1, 12, 3]; say element-digit-sum [1, 2, 3, 4]; say element-digit-sum [236, 416, 336, 350]; multi multiply-by-two(Set() $array, Int $start where $array{$start}) { multiply-by-two $array, $start * 2 } multi multiply-by-two($, Int $start) { $start } say multiply-by-two [5, 3, 6, 1, 12], 3; say multiply-by-two [1, 2, 4, 3], 1; say multiply-by-two [5, 6, 7], 2;
Editor Settings
Theme
Key bindings
Full width
Lines