Created
September 25, 2013 00:22
-
-
Save potix2/6693239 to your computer and use it in GitHub Desktop.
Lisp Meet Up #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def test-data "'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take the old value ") | |
(->> (re-seq #"\w+" test-data) | |
(map #(.toLowerCase %)) | |
(group-by identity) | |
(map (fn [[k v]] [k (count v)]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment