Skip to content

Instantly share code, notes, and snippets.

@belamenso
Created December 28, 2019 15:01
Show Gist options
  • Save belamenso/8414fab48929497da1f5f07a33c070bf to your computer and use it in GitHub Desktop.
Save belamenso/8414fab48929497da1f5f07a33c070bf to your computer and use it in GitHub Desktop.
template repeat(c: int, xs, ys: untyped) =
for i in 1..c:
xs
ys
repeat 5 do:
echo "iterating"
do:
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment