Narcissistic decimal number: Difference between revisions
m
→{{header|Perl 6}}: proper spelling
(→{{header|Perl 6}}: removing output? template) |
m (→{{header|Perl 6}}: proper spelling) |
||
Line 8:
=={{header|Perl 6}}==
Here is a straightforward, naive implementation. It works but takes ages.
<lang perl6>sub is-
for 0 .. * {
if .&is-
.say;
last if ++state$ >= 25;
|