raku-golf-cheatsheet icon indicating copy to clipboard operation
raku-golf-cheatsheet copied to clipboard

There are better ways to generate a sequence of factorials

Open AlexDaniel opened this issue 8 years ago • 1 comments

The document mentions $×=++$ for ^10, but that's not the shortest way:

say ($×=++$)xx⑩;
say [\*] 1…⑩;

AlexDaniel avatar Mar 10 '18 20:03 AlexDaniel

$×=++$ was mainly meant as a more complex example for anonymous state variables.

nwellnhof avatar Mar 12 '18 15:03 nwellnhof