Skip to content

Instantly share code, notes, and snippets.

@rhalff
Last active January 2, 2016 22:09
Show Gist options
  • Select an option

  • Save rhalff/8368261 to your computer and use it in GitHub Desktop.

Select an option

Save rhalff/8368261 to your computer and use it in GitHub Desktop.
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