Course of Raku / Advanced / Operators / Meta-operators / Reduction metaoperators
Quiz — Reduction
What does the following program print?
my @n = 1, 2, 3, 4;
say [*] @n;| 0 | 10 |
| 1 | 24 |
| 0 | 4 |
| 0 | (1 2 6 24) |
Course of Raku / Advanced / Operators / Meta-operators / Reduction metaoperators
What does the following program print?
my @n = 1, 2, 3, 4;
say [*] @n;| 0 | 10 |
| 1 | 24 |
| 0 | 4 |
| 0 | (1 2 6 24) |