> I have one more trivial question. It seems good that Clojure > consistently manages all data structures as sequence. But operator > like 'assoc' can be applied to map and vector, except list and string. > I'm curious about the reason of this decision.
What would (assoc (list 1 2 3) x y) mean? What is x? Lists are not associative data structures, so there are no semantics for associating things. In either case, you could always convert the list or string to a vector and then call assoc: (apply str (assoc (vec "mellow") 0 \y)) - J. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---