This breaks if `a-seq` contains `nil` values. You should use `contains?`. Or you can give `get` a default value:
~~~{.clojure}
(get freqs f 0)
~~~