Unique characters: Difference between revisions
→{{header|jq}}: note on efficiency
(→{{header|jq}}: note on efficiency) |
|||
Line 189:
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
The following "bag-of-words" solution is quite efficient as it takes advantage of the fact that jq implements JSON objects as a hash.
<lang jq>
# bag of words
|