Skip to content

Instantly share code, notes, and snippets.

@afish
Last active September 27, 2015 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afish/e7d4a158860ad9ab0e06 to your computer and use it in GitHub Desktop.
Save afish/e7d4a158860ad9ab0e06 to your computer and use it in GitHub Desktop.
maxIterations = 100 // Assume that we iterate at most one hunder times
var iterations // non-negative integer
iterations.SetLessOrEqual(maxIterations)
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),
variable)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment