Welcome! Please see the About page for a little more info on how this works.

+5 votes
in Clojure by
edited by

Came across this conversation in the Slack-archive:

jkr.sw: I usually define something like (defn spy> [x] (doto x tap>))

alexmiller: Having tap> return the val is a pretty good idea - if you write up a CLJ jira for it, that would remind me to talk to Rich about it

alexmiller: Or adding spy> or something

It seems the ticket was never created so putting it here.

JIRA: https://clojure.atlassian.net/browse/CLJ-2538

1 Answer

+7 votes
by
selected by
 
Best answer

We are planning to add a tap-> that does this. jira link added to question.

...