ABC words: Difference between revisions

Content added Content deleted
(→‎{{header|Phix}}: Add Python)
m (→‎{{header|Phix}}: use GT_LF_STRIPPED)
Line 413: Line 413:
return find(0,idii)==0 and idii==sort(idii)
return find(0,idii)==0 and idii==sort(idii)
end function
end function
sequence words = filter(split_any(get_text("demo/unixdict.txt")," \r\n",no_empty:=true),abc)
sequence words = filter(get_text("demo/unixdict.txt",GT_LF_STRIPPED),abc)
printf(1,"%d abc words found: %s\n",{length(words),join(shorten(words,"",3),", ")})</lang>
printf(1,"%d abc words found: %s\n",{length(words),join(shorten(words,"",3),", ")})</lang>
{{out}}
{{out}}
Line 419: Line 419:
55 abc words found: aback, abacus, abc, ..., syllabic, tabernacle, tablecloth
55 abc words found: aback, abacus, abc, ..., syllabic, tabernacle, tablecloth
</pre>
</pre>



=={{header|Python}}==
=={{header|Python}}==