Skip to content

Conversation

@bioball
Copy link
Member

@bioball bioball commented Oct 9, 2025

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 is broken into multiple lines, because there are two lambdas:

foo.bar.map((it) -> it + 1).filter((it) -> it.isEven)

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)
```
@bioball bioball merged commit 3a29ea8 into apple:main Oct 9, 2025
4 checks passed
@bioball bioball deleted the format-lambda-chains branch October 9, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants