RosettaCodeData/Task/Repeat/Raku/repeat.raku

6 lines
83 B
Raku
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
sub repeat (&f, $n) { f() xx $n };
sub example { say rand }
repeat(&example, 3);