Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOJURE] pretty print the clojure code (with zprint) #203

Closed
viebel opened this issue Jan 17, 2017 · 1 comment
Closed

[CLOJURE] pretty print the clojure code (with zprint) #203

viebel opened this issue Jan 17, 2017 · 1 comment

Comments

@viebel
Copy link
Owner

viebel commented Jan 17, 2017

In the klipse app, the print box displayed data that is not pretty printed.

Take a look here:
http://app.klipse.tech/?cljs_in=(print%20(zipmap%20(range%2020)%20(range)))%0A(zipmap%20(range%2020)%20(range))%0A

In the left side, the data is pretty printed but in the right side it is not.

(print (zipmap (range 20) (range)))
(zipmap (range 20) (range))
@viebel
Copy link
Owner Author

viebel commented Jan 18, 2017

It's not an issue, if one wants to pretty print he can use pprint:
http://app.klipse.tech/?cljs_in=(require%20%27clojure.pprint)%0A(clojure.pprint%2Fpprint%20(zipmap%20(range%2020)%20(range)))%0A(zipmap%20(range%2020)%20(range))%0A

(require 'clojure.pprint)
(clojure.pprint/pprint (zipmap (range 20) (range)))
(zipmap (range 20) (range))

@viebel viebel closed this as completed Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant