Re: Multi-assign
- Posted by Fernando Nov 19, 2011
- 2235 views
Some interesting possibilities with LHS symbolic sequences:
- Initializing several variables with the same value:
{a,b,c} = 0
- Incrementing several variables:
{a,b,c} += 1
- Adding different values for different variables:
{a,b,c} += {d,e,f}
- Doubling several variables:
{a,b,c} *= 2
- Fernando