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:
Daniel Chao
2025-10-09 10:16:13 -07:00
committed by GitHub
parent 98ab741c54
commit 3a29ea8998
3 changed files with 18 additions and 2 deletions

View File

@@ -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)

View File

@@ -6,3 +6,5 @@ res =
res2 = myList.map(lambda1).filter(lambda2)
res3 = myList.map((it) -> it.partition)
res4 = myList.foo.map((it) -> it.partition)