mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
fix: dict update!
bug
This commit is contained in:
parent
a8c1113df7
commit
0a24c0cb77
15 changed files with 97 additions and 23 deletions
|
@ -145,3 +145,6 @@ class FloatMut: # inherits Float
|
|||
|
||||
def __neg__(self):
|
||||
return FloatMut(-self.value)
|
||||
|
||||
def update(self, f):
|
||||
self.value = Float(f(self.value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue