Created
January 18, 2013 02:06
-
-
Save mariozig/4561746 to your computer and use it in GitHub Desktop.
parallel assignment discussed here: http://ruby.zigzo.com/2013/01/16/parallel-assignment/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var1, var2 = [1, 2] # var1 = 1; var2 = 2 | |
var1, var2 = 1, 2 # var1 = 1; var2 = 2 | |
var1, var2 = 1 # var1 = 1; var2 = nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment