all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
10
Task/Variables/E/variables-7.e
Normal file
10
Task/Variables/E/variables-7.e
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
def makeSum() {
|
||||
var a := 0
|
||||
var b := 0
|
||||
return [&a, &b, fn { a + b }]
|
||||
}
|
||||
|
||||
def [&x, &y, sum] := makeSum()
|
||||
x := 3
|
||||
y := 4
|
||||
sum() # returns 7
|
||||
Loading…
Add table
Add a link
Reference in a new issue