Jump to content

Hex words: Difference between revisions

→‎{{header|Raku}}: small simplification
No edit summary
(→‎{{header|Raku}}: small simplification)
Line 2,025:
=={{header|Raku}}==
Sorted by digital root with a secondary alphabetical sort.
<syntaxhighlight lang="raku" line>sub dr (Int $_ is copy) { $_ = dr(.comb.sum) while .chars > 1; $_ }
 
my %hex = './unixdict.txt'.IO.slurp.words.grep( *.chars > 3 )\
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.