Skip to content

Instantly share code, notes, and snippets.

@drewr
Created April 7, 2010 21:31
Show Gist options
  • Save drewr/359490 to your computer and use it in GitHub Desktop.
Save drewr/359490 to your computer and use it in GitHub Desktop.
% rlwrap java -jar clojure.jar
Clojure 1.2.0-master-SNAPSHOT
user=> (deftype Foo [] clojure.lang.IPersistentMap)
#'user/Foo
user=> (merge {} (Foo))
java.lang.NullPointerException (NO_SOURCE_FILE:0)
user=> (merge (Foo) {})
java.lang.UnsupportedOperationException: nth not supported on this type: PersistentArrayMap (NO_SOURCE_FILE:0)
user=> ^D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment