mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
feat: impl Hash for Array
This commit is contained in:
parent
53a43962e8
commit
57d3a23aed
7 changed files with 71 additions and 19 deletions
|
@ -5,28 +5,16 @@ from _erg_str import Str
|
|||
|
||||
|
||||
def int__(i):
|
||||
try:
|
||||
return Int(i)
|
||||
except:
|
||||
return None
|
||||
return Int(i)
|
||||
|
||||
|
||||
def nat__(i):
|
||||
try:
|
||||
return Nat(i)
|
||||
except:
|
||||
return None
|
||||
return Nat(i)
|
||||
|
||||
|
||||
def float__(f):
|
||||
try:
|
||||
return Float(f)
|
||||
except:
|
||||
return None
|
||||
return Float(f)
|
||||
|
||||
|
||||
def str__(s):
|
||||
try:
|
||||
return Str(s)
|
||||
except:
|
||||
return None
|
||||
return Str(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue