Generic swap: Difference between revisions
J: more concise (and more J-like) approach for swapping values of names
Puppydrum64 (talk | contribs) m (→Game Boy) |
(J: more concise (and more J-like) approach for swapping values of names) |
||
Line 1,597:
A generic destructive swap of named values would instead require reference to the locations being destroyed. Here's an implementation of that:
<lang J>destructiveSwap=:
Example use:
|