I recently stumbled across this little example by Ghadi Shayban <https://www.reddit.com/r/Clojure/comments/7x4wfy/new_clojurians_ask_anything/du5v3v6/> that helped *both* prepl and tap click for me:
$ clj -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.10.0-beta2"}}}' Clojure 1.10.0-beta2 user=> ;; launch a nested PREPL that steals this REPL’s *in* / *out* streams user=> (clojure.core.server/io-prepl) :bar {:tag :ret, :val ":bar", :ns "user", :ms 0, :form ":bar"} (defn my-broken-function [x] (tap> x) (prn "some output") (tap> x) :bar) {:tag :ret, :val "#'user/my-broken-function", :ns "user", :ms 223, :form "(defn my-broken-function [x]\n (tap> x)\n (prn \"some output\")\n (tap> x)\n :bar)"} (my-broken-function 24) {:tag :out, :val "\"some output\"\n"} {:tag :ret, :val ":bar", :ns "user", :ms 2, :form "(my-broken-function 24)"} {:tag :tap, :val "24"} {:tag :tap, :val "24"} :repl/quit nil user=> ^D On Tuesday, October 9, 2018 at 10:32:38 AM UTC-4, Colin Fleming wrote: > > I’m not sure a guide is needed for tap - the functions are pretty simple? >> > > Personally, I understand the mechanics, but I have no idea how they're > intended to be used. I'd love to see some examples of what they're designed > to do. > > On Sat, 6 Oct 2018 at 12:17, Alex Miller <al...@puredanger.com > <javascript:>> wrote: > >> >> > On Oct 6, 2018, at 3:53 AM, Mike <145...@gmail.com <javascript:>> >> wrote: >> > >> > Cool! Will there be more guides how to use tap and prepl ? >> >> I’m not sure a guide is needed for tap - the functions are pretty simple? >> I’ll think about it. >> >> prepl is designed for tool makers so is probably a limited audience and >> not really a good target for a guide. The docstrings have a lot more detail >> and may lead to some updated reference material. >> >> > Is there any plans to release clj for windows? >> >> Yes, but I can’t give you a timeframe. Significant work has been done. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com >> <javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.