If I want to access a property called
transform I could do it this way:
(. obj transform)
But what if I have a variable and want to access a property with the same name as the value of the variable:
(let [prop 'transform] (. obj prop))
This obviously doesn’t work, but how do I make it work? I tried doing things like:
(eval `(. ~'obj ~prop))
eval won’t help me since
prop is lexically bound.
Is there just a function version of
. lying around?