Skip to content

Instantly share code, notes, and snippets.

@porky11
Last active January 10, 2019 18:48
Show Gist options
  • Save porky11/ebb245e70988cf9c9a23cd392c4ad52f to your computer and use it in GitHub Desktop.
Save porky11/ebb245e70988cf9c9a23cd392c4ad52f to your computer and use it in GitHub Desktop.
New loop semantics
fn factorial (arg)
loop (x = arg)
if (x == 1)
break 1
else
x * (repeat (x - 1))
print (factorial 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment