Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An internal iterator
#Iterator
-interface-
start @(|>>|)
-machine-
$Start
|>>|
-> $Dec ^
$Dec
|>|
i = i - 1
i == 0 ?
-> $End ^
:
-> $Print ^
:: ^
$Print
|>|
print(i)
-> $Dec ^
$End
|>|
print("done") ^
-actions-
print[msg:String]
-domain-
var i:int = 5
##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment