Narcissistic decimal number: Difference between revisions

Content added Content deleted
Line 8:
=={{header|Perl 6}}==
{{output?}}
Here is a straightforward, naive implementation. ShouldIt workworks but takes ages.
<lang perl6>sub is-narcissic(Int $n) { $n == [+] $n.comb »**» $n.chars }