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

5 lines
76 B
CoffeeScript

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