Skip to content

Instantly share code, notes, and snippets.

@afish afish/Ilp Loop example
Last active Sep 27, 2015

What would you like to do?
maxIterations = 5
var iterations // non-negative integer
var sum // variable representing actual sum
for counter in 1..maxIteratations do
var isLooping = counter.IsLessOrEqual(iterations)
sum = isLooping.Condition(sum + counter, sum)
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.