Hi,maybe it's a bit stupid one,but what about including a command for swapping two variables to Hollywood? Amos had the Swap(x,y) which did it well while in Hollywood for swapping x and y you have to use another variable eg. :
x = help
x = y
y = help
Sometimes the swap command would be very useful,I found it out while programming BoingPairs...
Swapping two variables
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Swapping two variables
Oh, well, here it is:
Function Swap(a, b) Return(b, a) EndFunction
Happy new year
Function Swap(a, b) Return(b, a) EndFunction
Happy new year
Re: Swapping two variables
Ha, never thought it could be that easy.