Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The Clojure equivalent of `c |> baz |> bar |> foo` are the threading macros:

    (-> c baz bar foo)
But people usually put it on separate lines:

    (-> c
        baz
        bar
        foo)


And with the Emacs Enlighten feature the second version enables seeing the results of each step right in the editor, to the right of the step.


You can achieve something similar in Clojure with the Flowstorm debugger[0] (it's free).

[0] https://www.flow-storm.org/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: