Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Generic-swap/MiniScript/generic-swap.mini
Normal file
11
Task/Generic-swap/MiniScript/generic-swap.mini
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
swap = function(map, a, b)
|
||||
temp = map[a]
|
||||
map[a] = map[b]
|
||||
map[b] = temp
|
||||
end function
|
||||
|
||||
x = 1
|
||||
y = 2
|
||||
print "BEFORE: x=" + x + ", y=" + y
|
||||
swap(locals, "x", "y")
|
||||
print "AFTER: x=" + x + ", y=" + y
|
||||
Loading…
Add table
Add a link
Reference in a new issue