jashkenas--coffeescript/documentation/coffee/parallel_assignment.coffee

7 lines
78 B
CoffeeScript

theBait = 1000
theSwitch = 0
[theBait, theSwitch] = [theSwitch, theBait]