You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, `cue fix` would correctly convert list addition to calls to
`list.Concat`. However, chains of list-addition would not be merged,
which causes `cue fix` to create somewhat unreadable code, such as:
l: list.Concat([list.Concat([list.Concat([["a"], ["b"]]), ["c"]), ["d"]])
But it's not tricky to detect that an argument to + is itself a call to
`list.Concat` and thus flatten such trees to a single call to
list.Concat.
Fixes#3523
Change-Id: I9bb57fe3d576725ad5d2ae850b809d6b858e9f51
Signed-off-by: Matthew Sackman <[email protected]>
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202868
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
0 commit comments