variables defined using def in a let statement now escape local scope
test added as well.
This commit is contained in:
parent
3848d3bcfa
commit
2dfe73de6b
3 changed files with 37 additions and 0 deletions
|
|
@ -79,6 +79,10 @@ impl SymTable {
|
|||
self.0.get(arg)
|
||||
}
|
||||
|
||||
pub fn contains_key(&self, arg: &String) -> bool {
|
||||
self.0.contains_key(arg)
|
||||
}
|
||||
|
||||
pub fn insert(&mut self, k: String, v: Symbol) -> Option<Symbol> {
|
||||
self.0.insert(k, v)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue