> (the Int x)
I like the cute syntax for type annotations.
I like the cute syntax for type annotations.
so e.g. (the fixnum (+ x 1)) would assert that (+ x 1) produces a fixnum.
You can also annotate function with a type signature.
(sig add (Fn [Int Int] Int))
(defn add [x y] (+ x y))
Is the same as: (defn add [x y] (the Int (+ (the Int x) (the Int y))))