RosettaCodeData/Task/Variables/E/variables-3.e
2023-07-01 13:44:08 -04:00

7 lines
243 B
Text

def var x := 1
x += 1 # equivalent to x := x + 1, or x := x.add(1)
x # returns 2
def var list := ["x"]
list with= "y" # equivalent to list := list.with("y")
list # returns ["x", "y"]