Skip to content

Commit

Permalink
Update list-patterns.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alrz authored Oct 10, 2020
1 parent 695d460 commit 0338cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/list-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ All multi-dimensional arrays can be non-zero-based. We can either cut this suppo


The following rules determine if a pattern is valid for a multi-dimensional array:
- For an array of rank N, only N level of nested list-patterns are accepted.
- For an array of rank N, only N-1 level of nested list-patterns are accepted.
- Except for that last level, all subpatterns must be either a slice pattern without a subpattern (`..`) or a list-pattern.
- For slice patterns, the usual rules apply - only permitted once and only directly inside the pattern.
- All nested list-patterns must be of an exact or minimum size. Given X = the minimum or exact required length so far and Y = the new length from current nested list pattern, the expected size is calculated as follow:
Expand Down

0 comments on commit 0338cce

Please sign in to comment.