Original PR: https://github.com/apple/pkl/pull/1260 Author: @bioball Created: 10/27/2025 Status: ✅ Merged Merged: 10/28/2025 Merged by: @bioball
Base: main ← Head: trailing-lambda-adjustment
main
trailing-lambda-adjustment
1e24dcc
a0ae16b
3 files changed (+59 additions, -2 deletions)
📝 pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt (+22 -2) ➕ pkl-formatter/src/test/files/FormatterSnippetTests/input/method-call-trailing-lambdas.pkl (+18 -0) ➕ pkl-formatter/src/test/files/FormatterSnippetTests/output/method-call-trailing-lambdas.pkl (+19 -0)
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt
pkl-formatter/src/test/files/FormatterSnippetTests/input/method-call-trailing-lambdas.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/output/method-call-trailing-lambdas.pkl
This changes code so that multiple lambda arguments makes the whole argument list wrap.
Improves the readability of code like:
foo .toMap( (it) -> makeSomeKey(it), (it) -> makeSomeValue(it) )
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1260
Author: @bioball
Created: 10/27/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @bioball
Base:
main← Head:trailing-lambda-adjustment📝 Commits (2)
1e24dccAdjust formatting of argument listsa0ae16bAdd comment📊 Changes
3 files changed (+59 additions, -2 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+22 -2)➕
pkl-formatter/src/test/files/FormatterSnippetTests/input/method-call-trailing-lambdas.pkl(+18 -0)➕
pkl-formatter/src/test/files/FormatterSnippetTests/output/method-call-trailing-lambdas.pkl(+19 -0)📄 Description
This changes code so that multiple lambda arguments makes the whole argument list wrap.
Improves the readability of code like:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.