Unique characters: Difference between revisions
Content added Content deleted
(→{{header|jq}}: note on efficiency) |
|||
Line 189: | Line 189: | ||
{{works with|jq}} |
{{works with|jq}} |
||
'''Works with gojq, the Go implementation of 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> |
<lang jq> |
||
# bag of words |
# bag of words |