Jordan-Pólya numbers: Difference between revisions
m
→{{header|Raku}}: simplify with 'splice'
m (Minor alteration.) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: simplify with 'splice') |
||
Line 1,536:
my \p = @res.keys.first: { @res[$_] >= kl } # performance
if p < @res.elems and @res[p] != kl {
@res.splice:
} elsif p == @res.elems {
@res.append: kl
|