Last active
January 2, 2016 22:09
-
-
Save rhalff/8368261 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| title: Infinity | |
| description: Keeps on counting and logging | |
| # multiply by 10 | |
| 10 -> @y Multiply(math/multiply) | |
| IsFinite(object/isFinite) | |
| # output of multiply goes to Log | |
| Multiply out -> msg Log(console/log) | |
| # initial value is 5 | |
| 5 -> x Multiply | |
| # Need to start it manually because we also | |
| # have to open the start port for the loop. | |
| '' -> :start Multiply | |
| "You've reached Infinity!" -> @msg Infinity(console/log) | |
| # keep feeding it's output to it's input | |
| Multiply out -> x Multiply | |
| Multiply out -> in IsFinite yes -> :start Multiply | |
| IsFinite no -> :start Infinity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment