garden/go.fnl

29 lines
604 B
Fennel

(local fennel (require :fennel))
(import-macros {: terra : unterra : untype : def : q : ttype} :terra)
; (local N 5)
; (print (unterra
; (def [x [int] : int64]
; (var y (+ x N))
; (return (cast int64 (& [y]))))))
(print (untype
{key int
:union {
string [int8]
number float
complex {real float imag float}
}
}))
(print (fennel.view (ttype
{key int
:union {
string [int8]
number float
complex {real float imag float}
}
})))
; (local inc (def [x [int]] (return [x N])))
; (print (inc 5))