Hex words: Difference between revisions

m
Line 234:
.grep({ not / <-[abcdef]> / }).map: { $_ => dr :16($_).comb.sum }
 
say "{+%hex} hex words longer than 43 characters found in unixdict.txt:";
printf "%6s ➡ %8d ➡ %d\n", .key, :16(.key), .value for %hex.sort: { .value, .key }
 
Line 242:
printf "%6s ➡ %8d ➡ %d\n", .key, :16(.key), .value for %many.sort: { -:16(.key) }</lang>
{{out}}
<pre>26 hex words longer than 43 characters found in unixdict.txt:
ababa ➡ 703162 ➡ 1
abbe ➡ 43966 ➡ 1
10,333

edits