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 authored and GitHub committed 2025-10-09 10:16:13 -07:00
1 parent 98ab741c54
commit 3a29ea8998
3 files changed
+18 -2

No files matched your search

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