Integer roots: Difference between revisions
→{{header|Raku}}: simplifying with the sequence operator
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(→{{header|Raku}}: simplifying with the sequence operator) |
||
Line 980:
<syntaxhighlight lang="raku" line>sub integer_root ( Int $p where * >= 2, Int $n --> Int ) {
my Int $d = $p - 1;
(
{ $_**$p ≤ $n
).tail
}
|