Mercurial > repos > tabletprog
view samples/recursive_closure.tp @ 67:42d5660b30b4
added remainder operator
author | William Morgan <bill@mrgn.org> |
---|---|
date | Sat, 14 Jul 2012 13:31:05 -0700 |
parents | 93ddb4ad6fcb |
children | 3a169ebb3224 |
line wrap: on
line source
#{ true <- #{ if:else <- :self trueblock :elseblock { trueblock: } } false <- #{ if:else <- :self trueblock :elseblock { elseblock: } } main <- { foo <- :n { if: n < 10 { true } else: { foo <- :n { n } } foo: n + 1 } print: (string: (foo: 0)) } }