If I have a map like this:
(def foo {:bar "foobar"})
And I've been passed the key :bar
as a string (i.e. ":bar"
)
I want to be able to access the value from the map doing something like
(get foo (symbol ":bar"))
which I thought would work, because (symbol ":bar")
is :bar
... but it just returns nil