I am working my way through a roman numerals clojure exercise.
I have
(def roman-numerals {"M" 1000 "D" 500 "C" 100 "L" 50 "X" 10 "V" 5 "I" 1})
and I'd like to convert let's say "XVI" to numbers - as a start. But
(map #(println %) (sequence "XIV"))
prints
`
X
(nilI
nilV
nil)`
and
(map #(get roman-numerals %) (sequence "XIV"))
produces
(nil nil nil)
How can I get map to use the actual characters out of the sequence?
(sequence "XIV") => (\X \I \V)