I realize `dissoc` isn't implemented to work on vectors for technical reasons (such as explained on 1/13/11 here https://groups.google.com/forum/#!msg/clojure/Lx9ysZ4ndfw/E52rVTvclMoJ ).
"It'd be nice" if it did as I still get surprised by this on occasion, it feels like an inconsistency when using Clojure such that I'd imagine it's a general point of frustration for others as well. (assoc [1 2 3] 1 'a) ;=> [1 a 3] (dissoc ['a 'b 'c] 1) ;=> ClassCastException clojure.lang.PersistentVector cannot be cast to clojure.lang.IPersistentMap clojure.lang.RT.dissoc (RT.java:759) (assoc-in [['a 'b] ['c 'd]] [1 1] 'x) ;=> [[a b] [c x]] (clojure.core.incubator/dissoc-in [['a 'b] ['c 'd]] [1 1]) ;=> ClassCastException clojure.lang.PersistentVector cannot be cast to clojure.lang.IPersistentMap clojure.lang.RT.dissoc (RT.java:759) -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.