mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
6 lines
222 B
Python
6 lines
222 B
Python
id x = x
|
|
|
|
1 + 1 |> id() == id(1 + 1) |> assert()
|
|
1 + 2 * 3 |> id() |> id() == id(id(1 + 2 * 3)) |> assert()
|
|
1 + 1 |> .abs() == (1 + 1).abs() |> assert()
|
|
1 + 2 * 3 |> .abs() |> .abs() == (1 + 2 * 3).abs().abs() |> assert()
|