mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Update stream.er
This commit is contained in:
parent
eb54cdd18b
commit
943f4b9d8f
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
print!(1 + 1 |> f())
|
||||
print!(1 + 1 |> .abs())
|
||||
id x = x
|
||||
|
||||
print!(f(1+1))
|
||||
print!((1+1).abs())
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue