logoalt Hacker News

munchleryesterday at 9:49 PM1 replyview on HN

Simple example:

   type Expr =
       | Primitive of int
       | Addition of (Expr * Expr)
       | Subtraction of (Expr * Expr)
       | Negation of Expr

Replies

Quarrelsomeyesterday at 9:52 PM

Isn't that just Func<int> ?

show 2 replies