Distinct palindromes within decimal numbers: Difference between revisions

m
→‎{{header|Raku}}: Whoops, important full stop
(→‎{{header|Raku}}: Add a Raku example)
m (→‎{{header|Raku}}: Whoops, important full stop)
Line 268:
@s
}
@pal.unique.sort({.chars, .&naturally});
}
 
Line 281:
{{out}}
<pre>All palindromic substrings including (bizarrely enough) single characters:
100 => 1 0 1 00
101 => 1 0 1 101
102 => 1 0 1 2
103 => 1 0 1 3
104 => 1 0 1 4
105 => 1 0 1 5
106 => 1 0 1 6
107 => 1 0 1 7
108 => 1 0 1 8
109 => 1 0 1 9
110 => 1 0 1 11
111 => 1 11 111
112 => 1 2 11
Line 301:
118 => 1 8 11
119 => 1 9 11
120 => 0 1 2 0
121 => 1 2 121
122 => 1 2 22
10,327

edits