# How to do a reduceByKey in Julia

**URL:** <https://discourse.julialang.org/t/how-to-do-a-reducebykey-in-julia/20369>\
**Category:** New to Julia\
**Created:** [February 1, 2019, 10:32pm UTC](https://discourse.julialang.org/t/how-to-do-a-reducebykey-in-julia/20369 "2019-02-01T22:32:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bennedich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennedich/32/4894_2.png) [@bennedich](https://discourse.julialang.org/u/bennedich)\
**Post date:** [February 2, 2019, 7:42am UTC](https://discourse.julialang.org/t/how-to-do-a-reducebykey-in-julia/20369/5 "2019-02-02T07:42:04Z")

</div>

I discussed various ways to do it here:

[How to count all unique character frequency in a string?](https://discourse.julialang.org/t/how-to-count-all-unique-character-frequency-in-a-string/19342/16)

`countmap` is an excellent choice, if you don’t mind the dependency on `StatsBase`.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-do-a-reducebykey-in-julia/20369)._
