code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(12 lines)
1 func add(x:Int, y:Int -> Int)
2 return x + y
4 func cached_heap(x:Int->@Int; cached)
5 return @x
7 func main()
8 assert add(3, 5) == 8
10 assert cached_heap(1) == cached_heap(1)
11 assert cached_heap(1) != cached_heap(2)