retroforth/example/LightWeightFlowControl.forth
crc a60ba41c58 new example code
FossilOrigin-Name: 1dcb91aa4cefd617722d5bfacc85229e7a429d095f622d7b46fc04d3722d08ff
2018-09-13 19:42:54 +00:00

8 lines
314 B
Forth

~~~
:0=; n:zero? [ as{ 'popopodr i 'drdrre.. i }as ] if ;
:< lt? [ as{ 'popopodr i 'drdrre.. i }as ] if ;
:> gt? [ as{ 'popopodr i 'drdrre.. i }as ] if ;
:<> -eq? [ as{ 'popopodr i 'drdrre.. i }as ] if ;
:if; [ as{ 'popopodr i 'drdrre.. i }as ] if ;
:?; dup [ as{ 'popopodr i 'drdrre.. i }as ] if drop ;
~~~