Skip to content

Instantly share code, notes, and snippets.

@afish afish/IlpLoops
Last active Sep 27, 2015

What would you like to do?
maxIterations = 100 // Assume that we iterate at most one hunder times
var iterations // non-negative integer
var variables // variables which we use in loop
for counter in 1..maxIteratations do
var isLooping = counter.IsLessOrEqual(iterations)
for variable in variables do
variable = isLooping.Condition(
updateVariable(variable, counter),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.