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

In the example:

  (foo [1 2 3
        4 5 6
        7 8 9])
How does one change it to:

  (foo [1 2 3]
       [4 5 6]
       [7 8 9])
?

edit: Ah, it works if you put all the forms on one line. I suppose it would be considered non-standard to indent that particular syntax in such a way.



You could also just put a "[" in front of "4" and "7".

Parinfer will infer the closing brackets.


That yeilds

  (foo [1 2 3
       [4 5 6]
       [7 8 9]])




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

Search: