Sort the letters of string in alphabetical order: Difference between revisions
Sort the letters of string in alphabetical order (view source)
Revision as of 10:10, 27 July 2021
, 2 years ago→{{header|Raku}}: typo
(/* {{header|jq}} formatting) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: typo) |
||
Line 360:
=={{header|Raku}}==
===
<lang perl6>sub sort_within_string ( $_ is copy ) {
constant @lexographic_order = sort *.fc, map &chr, 1..255;
|