Unique characters: Difference between revisions
→{{header|jq}}: efficiency
(→{{header|jq}}: note on efficiency) |
(→{{header|jq}}: 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
def bow(stream):
|