Created
July 4, 2018 09:48
-
-
Save porky11/db4c90bae894de1efa28fd8a4dd879f5 to your computer and use it in GitHub Desktop.
Convert my Iterator to scopes Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typefn& Iterator '__as (self T) | |
if (T == Generator) | |
Generator | |
label (fret fdone val) | |
if ('next? val) | |
fret | |
val | |
'next val | |
else | |
fdone; | |
self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment