Jump to content

ABC words: Difference between revisions

m (→‎{{header|Phix}}: use unix_dict() and make it p2js compatible)
Line 1,117:
25: pummel 26: supremum
</pre>
 
=={{header|jq}}==
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
<lang jq>def is_abc_word:
[index("a", "b", "c")]
| all(.[]; . != null) and .[0] < .[1] and .[1] < .[2] ;
 
select(is_abc_word)</lang>
Invocation: jq -rR -f abc-words.jq unixdict.txt
{{out}} (synopsis)
<pre>
aback
abacus
abc
...
aback
abacus
abc
</pre>
 
 
=={{header|Julia}}==
2,502

edits

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