This commit is contained in:
Richard Feldman 2024-10-18 22:32:41 -04:00
parent e947cd78b9
commit 98535bfbce
No known key found for this signature in database
GPG key ID: 5DE4EE30BB738EDF
28 changed files with 6508 additions and 337 deletions

View file

@ -207,6 +207,7 @@ pub struct ListPatterns {
/// [ .., A, B ] -> patterns = [A, B], rest = 0
/// [ A, .., B ] -> patterns = [A, B], rest = 1
/// [ A, B, .. ] -> patterns = [A, B], rest = 2
/// Optionally, the rest pattern can be named - e.g. `[ A, B, ..others ]`
pub opt_rest: Option<(usize, Option<Loc<Symbol>>)>,
}