RosettaCodeData/Task/Hex-words/APL/hex-words.apl
2023-08-01 14:31:52 -07:00

20 lines
648 B
APL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

HexWords;todec;digroot;displayrow;words;distinct4
todec169+'abcdef'
digroot(+/10¯1)(10)
displayrow{ n (digrootntodec )}
words((~)⎕TC)⎕NGET'unixdict.txt'
words(words.¨'abcdef')/words
words(4¨words)/words
wordswords[digroottodec¨words]
distinct4(4¨words)/words
distinct4distinct4[todec¨distinct4]
(words),' hex words with at least 4 letters in unixdict.txt:'
displayrow¨words
''
(distinct4),' hex words with at least 4 distinct letters:'
displayrow¨distinct4