ABC words: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: use unix_dict() and make it p2js compatible) |
|||
Line 1,117: | Line 1,117: | ||
25: pummel 26: supremum |
25: pummel 26: supremum |
||
</pre> |
</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}}== |
=={{header|Julia}}== |