Generic swap: Difference between revisions
m
→In-place modification
Drkameleon (talk | contribs) (added alternative implementation - for Arturo) |
Drkameleon (talk | contribs) |
||
Line 352:
===In-place modification===
<lang rebol>swap: function [a,b]
tmp: var b
let b var a
let a tmp
]
c: 1
Line 358 ⟶ 362:
print [c d]
print [c d]</lang>
|