Skip to content

Commit dafb8c2

Browse files
committed
reword behavior of extra list items
1 parent 43c8e8b commit dafb8c2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ppcs/ppc0033-map-grep-with-topic.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ possible to use `my` variables for this.
7575
### `map my (VAR, VAR) BLOCK LIST`
7676

7777
This will evaluate `BLOCK` for each set of two elements in `LIST`, aliasing
78-
the `VAR` to the first of each set, and the second `VAR` to the second. If
79-
there is not a multiple of two items in `LIST`, the last run of `BLOCK` will
80-
assign `undef` to the extra `VAR` slot not corresponding to an element in
81-
`LIST`. More than two variables can be used to iterate over sets of three or
82-
more items.
78+
the `VAR` to the first of each set, and the second `VAR` to the second. More
79+
than two variables can be used to iterate over sets of three or more items.
80+
81+
On the last iteration, there may not be enough elements remaining to fill
82+
every `VAR` slot. In this case the extra `VAR` slots will be filled with
83+
`undef`.
8384

8485
## Backwards Compatibility
8586

0 commit comments

Comments
 (0)