Skip to content

Instantly share code, notes, and snippets.

@chpill
Last active March 25, 2017 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chpill/4878ad4199cd9d371230772a1d5448c0 to your computer and use it in GitHub Desktop.
Save chpill/4878ad4199cd9d371230772a1d5448c0 to your computer and use it in GitHub Desktop.
(defn error? [x] (:error x))
(defn original [chunks]
(transduce (comp
(halt-when error?)
(map #(frequencies (map :a %))))
(completing (partial merge-with +))
{}
chunks))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment