Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@schmee
Created October 19, 2014 12:06
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 schmee/662a1444754141b721d1 to your computer and use it in GitHub Desktop.
Save schmee/662a1444754141b721d1 to your computer and use it in GitHub Desktop.
{:user {:dependencies [[im.chit/vinyasa "0.2.2"]]
:injections
[(require 'clojure.pprint)
(ns-unmap *ns* 'pp)
(def pp clojure.pprint/pprint)
(def p println)]}}
REPL output:
user=> (def a {:a 1 :b {1 1 2 2}})
#'user/a
user=> (p a)
{:b {1 1, 2 2}, :a 1}
nil
user=> (pp a)
ArityException Wrong number of args (1) passed to: pprint/pp clojure.lang.Compiler.macroexpand1 (Compiler.java:6557)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment