mirror of
https://github.com/apple/pkl.git
synced 2026-04-01 14:43:12 +02:00
Format lambda chains (#1235)
This changes the formatter to only force line on call chains with multiple lambdas With this change, this is kept as a single line: ``` foo.bar.map((it) -> it + 1) ```
This commit is contained in:
@@ -3,3 +3,5 @@ res = myList.map((it) -> it.partition).filter((it) -> someList.contains(it))
|
||||
res2 = myList.map(lambda1).filter(lambda2)
|
||||
|
||||
res3 = myList.map((it) -> it.partition)
|
||||
|
||||
res4 = myList.foo.map((it) -> it.partition)
|
||||
|
||||
@@ -6,3 +6,5 @@ res =
|
||||
res2 = myList.map(lambda1).filter(lambda2)
|
||||
|
||||
res3 = myList.map((it) -> it.partition)
|
||||
|
||||
res4 = myList.foo.map((it) -> it.partition)
|
||||
|
||||
Reference in New Issue
Block a user