Skip to main content
4 events
when toggle format what by license comment
Jun 14, 2015 at 18:17 vote accept kjo
Jun 14, 2015 at 5:45 comment added Dan Oak @kjo, {X,Y} = {Y,X} will swap values. maybe this is the remark you've confused with your question?
Jun 13, 2015 at 21:23 comment added kjo Thank you! I thought I once came across a remark in the docs to the effect that some built-in function could be easily used to do this head-swapping operation, and in fact it was routinely used for this... I'll wait a bit longer to see if my memory is not tricking me. But if it is, then your solution shows that it's trivial to roll one's own.
Jun 13, 2015 at 21:08 history answered Kuba CC BY-SA 3.0