On 6-Apr-09, at 6:22 PM, Stephen C. Gilardi wrote:

> The call to keyword here:
>
>       user=> (:the/key {(keyword "the" "key") "the val"})
>       "the val"
>
> creates a keyword whose namespace part is "the" and whose name part  
> is "key" just like :the/key.
>
> Does this accomplish what you're after or are you specifically  
> requesting that (keyword "the/key") be made to work?

Yeah, that is alright. Thanks.
>
> --Steve
>
> On Apr 6, 2009, at 2:45 AM, Andrew Rimes wrote:
>
>>
>> Hello,
>>
>> This tripped me up today:
>>
>> user=> (:the/key { :the/key "the val"}) ; ok
>> "the val"
>>
>> user=> (:the/key { (keyword "the/key") "the val"}) ; returns nil?
>> nil
>>
>> Shouldn't both return "the val"?
>>
>> Thanks,
>>
>> Andrew
>>
>> >>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to