Skip to content

Instantly share code, notes, and snippets.

View koreus7's full-sized avatar

Leo Mahon koreus7

  • London
View GitHub Profile
@koreus7
koreus7 / repeat.js
Created August 27, 2015 14:02
How to short this into a while loop?
var lastValue = list[0]
for(var i = 1; i < list.length; i ++ )
{
lastValue = takeTwoValues(list[i],lastValue)
}