mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-09 21:28:22 +00:00
fix: dict update!
bug
This commit is contained in:
parent
a8c1113df7
commit
0a24c0cb77
15 changed files with 97 additions and 23 deletions
|
@ -53,5 +53,8 @@ class BoolMut(NatMut):
|
|||
else:
|
||||
return self.value != other.value
|
||||
|
||||
def update(self, f):
|
||||
self.value = Bool(f(self.value))
|
||||
|
||||
def invert(self):
|
||||
self.value = self.value.invert()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue