Debian Codegraph @

ipl/packs/loadfuncpp/examples/hexwords_oneline.icn

raw
1 procedure printable(word)
2 return "" == word | map(map(word, "oOiIzZeEsStT", "001122335577"), &lcase, &ucase);
3 end
4 procedure main()
5 find := '0123456789abcdefABCDEFoOiIzZeEsS';
6 words := open(word_file := "/usr/share/dict/words") | stop("Unable to open: " || word_file);
7 every write(printable( | 1 ( | (word := trim(read(words))) , not("" == word) , ('' == word -- find))));
8 end