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
Support nested splat patterns by matching native lowerer algorithm (#91)
Adds support for nested splat expressions like `tuple((xs...)...)` by
restructuring the splat expansion to match the native lowerer's
recursive algorithm.
The native lowerer unwraps only one layer of `...` per pass and relies
on recursive expansion to handle nested cases. This approach naturally
builds the nested `_apply_iterate` structure through multiple expansion
passes, avoiding the need for explicit depth tracking and normalization.
Changes:
- Refactor `_wrap_unsplatted_args` to unwrap only one layer of `...`
- Refactor `expand_splat` to construct unevaluated `_apply_iterate` call
then recursively expand it
- Add test cases for nested splats including triple-nested and mixed-depth
0 commit comments