Skip to content

Instantly share code, notes, and snippets.

@aria42
Created September 19, 2010 19:27
Show Gist options
  • Save aria42/587045 to your computer and use it in GitHub Desktop.
Save aria42/587045 to your computer and use it in GitHub Desktop.
(defn tally-usage [word-info before after]
(-> word-info
(update-in [:count] inc)
(update-in [:contexts] inc-count [before after] 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment