We currently use [first, .. as rest] to capture arbritary segments of lists (rest in this pattern) during matching. We should change this syntax to [first, ..rest] to be consistent with the spread behavior we're adding in https://github.com/roc-lang/roc/issues/7092.
We currently use
[first, .. as rest]
to capture arbritary segments of lists (rest
in this pattern) during matching. We should change this syntax to[first, ..rest]
to be consistent with the spread behavior we're adding in https://github.com/roc-lang/roc/issues/7092.