Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Generic-swap/XBS/generic-swap-1.xbs
Normal file
9
Task/Generic-swap/XBS/generic-swap-1.xbs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
set x=1;
|
||||
set y=2;
|
||||
log("Before Swap");
|
||||
log(x);
|
||||
log(y);
|
||||
swap x y;
|
||||
log("After Swap");
|
||||
log(x);
|
||||
log(y);
|
||||
10
Task/Generic-swap/XBS/generic-swap-2.xbs
Normal file
10
Task/Generic-swap/XBS/generic-swap-2.xbs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
set x = 1;
|
||||
set y = 2;
|
||||
func Swap(a,b){
|
||||
send[b,a];
|
||||
}
|
||||
set z = Swap(x,y);
|
||||
x=z[0];
|
||||
y=z[1];
|
||||
log(x)
|
||||
log(y);
|
||||
Loading…
Add table
Add a link
Reference in a new issue