Created
August 27, 2015 14:02
-
-
Save koreus7/73404d1ffd3ea0402e51 to your computer and use it in GitHub Desktop.
How to short this into a while loop?
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
var lastValue = list[0] | |
for(var i = 1; i < list.length; i ++ ) | |
{ | |
lastValue = takeTwoValues(list[i],lastValue) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment