September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
24
Task/Generic-swap/Elena/generic-swap.elena
Normal file
24
Task/Generic-swap/Elena/generic-swap.elena
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import extensions.
|
||||
|
||||
singleton swap
|
||||
{
|
||||
eval ref:v1 ref:v2
|
||||
[
|
||||
var tmp := v1 value.
|
||||
|
||||
v1 object := v2 value.
|
||||
v2 object := tmp.
|
||||
]
|
||||
}
|
||||
|
||||
program =
|
||||
[
|
||||
var n := 2.
|
||||
var s := "abc".
|
||||
|
||||
console printLine(n," ",s).
|
||||
|
||||
swap eval ref:n ref:s.
|
||||
|
||||
console printLine(n," ",s).
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue