Skip to content

Instantly share code, notes, and snippets.

@zane
Created September 12, 2012 19:47
Show Gist options
  • Save zane/3709417 to your computer and use it in GitHub Desktop.
Save zane/3709417 to your computer and use it in GitHub Desktop.
(defn mystr [x y] (str x ", " y))
(defparallelagg myagg :init-var #'identity :combine-var #'mystr)
(let [tap [[:a 1]
[:a 2]
[:b 3]
[:c 4]]]
(?<- (stdout) [?label ?nums]
(tap ?label ?all-nums)
(myagg ?all-nums :> ?nums)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment