mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Get multimorphic lambda captures working
This commit is contained in:
parent
88618c098d
commit
8be230695b
9 changed files with 458 additions and 423 deletions
|
@ -97,6 +97,10 @@ impl<K: PartialEq, V> VecMap<K, V> {
|
|||
self.keys.iter().zip(self.values.iter())
|
||||
}
|
||||
|
||||
pub fn iter_mut(&mut self) -> impl ExactSizeIterator<Item = (&K, &mut V)> {
|
||||
self.keys.iter().zip(self.values.iter_mut())
|
||||
}
|
||||
|
||||
pub fn keys(&self) -> impl ExactSizeIterator<Item = &K> {
|
||||
self.keys.iter()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue