Created
August 31, 2018 20:48
-
-
Save aarkerio/5b9676f2b935fbea796581dc51db643a to your computer and use it in GitHub Desktop.
Clojure: change value in map from string to boolean
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 answer {:answer "France" :correct "true" :age 11}) | |
(update answer :correct #(if (= % "true") true false)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment