Wind
40772fea15
fix do closure with both required, options, and rest args (#13002)
# Description
Fixes: #12985
`val_iter` has already handle required positional and optional
positional arguments, it not skip them again while handling rest
arguments.
# User-Facing Changes
Makes `do {|a, ...b| echo $a ...$b} 1 2 3 4` output the following again:
```nushell
╭───┬───╮
│ 0 │ 1 │
│ 1 │ 2 │
│ 2 │ 3 │
│ 3 │ 4 │
╰───┴───╯
```
# Tests + Formatting
Added some test cases
2024-05-30 08:29:46 -05:00
..
2022-02-07 14:54:06 -05:00
2024-05-02 09:36:37 -04:00
2023-09-05 14:36:37 +02:00
2024-05-23 10:47:06 +08:00
2024-04-04 09:25:54 +02:00
2024-05-04 00:53:15 +00:00
2024-05-04 00:53:15 +00:00
2024-05-04 00:53:15 +00:00
2024-05-04 00:53:15 +00:00
2024-04-26 06:24:57 -05:00
2024-05-16 07:11:18 -07:00
2024-05-23 02:05:27 +00:00
2024-05-04 00:53:15 +00:00
2024-05-30 08:29:46 -05:00
2024-05-13 13:37:53 +00:00