You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, mutability could be dangerous in the presence of backtracking.
For building a HashMap without allocating an intermediate Vec, it seems like there could be a trait that exposes new(), append(&mut self, elem: T) and maybe finish(self) that the generated code could use in place of Vec to collect the results of each iteration of a repeat operator. I am not sure what the syntax would look like to specify this type on a repeat operator.
The text was updated successfully, but these errors were encountered: