Lurker News

Comments (134) 36 threads

Show all comments

Showing thread 22 of 36

dTal1 reply#
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.

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

Parinfer will infer the closing brackets.

dTal#
That yeilds

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