Skip to content

Instantly share code, notes, and snippets.

@chpill
Created March 25, 2017 16:20
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 chpill/3eb137b9160ddd781ab1c3be706d5273 to your computer and use it in GitHub Desktop.
Save chpill/3eb137b9160ddd781ab1c3be706d5273 to your computer and use it in GitHub Desktop.
(def mini-chunks-with-error
[[{:a 0} {:a 1} {:a 2}]
[{:a 0} {:a 1} {:a 2}]
{:error "Something terrible has happened!"}])
(original mini-chunks-with-error)
=> {:error "Something terrible has happened!"}
(using-xform mini-chunks-with-error)
=> Unhandled java.lang.ClassCastException
clojure.lang.PersistentArrayMap cannot be cast to
clojure.lang.ITransientCollection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment