Strings as functions of maps

2008-12-11 Thread Stefan Rusek
If we have the following map: (def m {:key 1 'sym 2 str 3}) The following are equivalent: (:key m) (m :key) As are the following: ('sym m) (m 'sym) I think the commutativity of maps with symbols and keywords is a valuable and good thing. I realize that the String class doesn't implement the

Re: Strings as functions of maps

2008-12-11 Thread Rich Hickey
On Dec 11, 4:37 pm, Stefan Rusek sru...@gmail.com wrote: If we have the following map: (def m {:key 1 'sym 2 str 3}) The following are equivalent: (:key m) (m :key) As are the following: ('sym m) (m 'sym) I think the commutativity of maps with symbols and keywords is a valuable