gdritter repos earthling / master examples / arith.rth
master

Tree @master (Download .tar.gz)

arith.rth @masterraw · history · blame

1
2
3
4
5
6
-- this is a comment
-- definitions take the form `def name type body .`
@def t1 ('a -> 'a Int) 2 3 + 4 *.

-- the top-level is defined as main and should have the type [] -> []
@def main ([] -> []) t1 print.