mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
14 lines
177 B
Python
14 lines
177 B
Python
_abs x =
|
|
x.abs() # currently this method only implemented for integers
|
|
|
|
assert _abs(-1) == 1
|
|
|
|
#[
|
|
push! a, elem =
|
|
a.push!(elem)
|
|
a
|
|
|
|
a = ![]
|
|
b = push! a, 1
|
|
print! b
|
|
]#
|