Is there the way to get formatted result?
Usually it's done with (set! nrepl.middleware.print/*print-fn* clojure.pprint/pprint).
I can prepend every call with this, but it's not too much usable.
$ rep "(set! nrepl.middleware.print/*print-fn* clojure.pprint/pprint)(def a 1)(def b 2)"
#function[clojure.pprint/pprint]
#'user/a
#'user/b
Or different variant - is there a way to get only result of the last call?
Is there the way to get formatted result?
Usually it's done with
(set! nrepl.middleware.print/*print-fn* clojure.pprint/pprint).I can prepend every call with this, but it's not too much usable.
$ rep "(set! nrepl.middleware.print/*print-fn* clojure.pprint/pprint)(def a 1)(def b 2)" #function[clojure.pprint/pprint] #'user/a #'user/bOr different variant - is there a way to get only result of the last call?