Last active
August 29, 2015 14:13
-
-
Save theotherzach/18550d52e7fa4743f4aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 scenes [{:subject "Frankie" | |
| :action "say" | |
| :object "relax"} | |
| {:subject "Lucy" | |
| :action "❤s" | |
| :object "Clojure"} | |
| {:subject "Rich" | |
| :action "tries" | |
| :object "a new conditioner"}]) | |
| (defn people-in-scenes [scenes] | |
| (->> scenes | |
| (map :bad-key) ;; <- nil is introduced here | |
| (interpose ", ") | |
| (reduce str))) | |
| (println "People:" (people-in-scenes scenes)) | |
| ;;=> People: , , | |
| ;;=> nil |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Response to https://twitter.com/swannodette/status/555541046537383938