Skip to content

Instantly share code, notes, and snippets.

@tobias
Created November 4, 2015 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobias/495db267e4f0ad58277a to your computer and use it in GitHub Desktop.
Save tobias/495db267e4f0ad58277a to your computer and use it in GitHub Desktop.
immutant.web.internal.wunderboss> (def l (doto (LinkedHashMap.) (.put "a" "b")))
#'immutant.web.internal.wunderboss/l
immutant.web.internal.wunderboss> l
{"a" "b"}
immutant.web.internal.wunderboss> (merge l {"c" "d"})
ClassCastException java.util.LinkedHashMap cannot be cast to clojure.lang.IPersistentCollection clojure.core/conj--4116 (core.clj:82)
immutant.web.internal.wunderboss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment