Open lancelote opened 3 years ago
E.g.
datatype myType = TwoInts of int * int | Str of string | Pizza fun f x = (* mytype -> int *) case x of Pizza => 3 | TwoInts (i1, i2) => i1 + i2 (*| Str s => String.size s*) val test_1 = f Pizza = 3
E.g.