Anonymous user
Algebraic data types: Difference between revisions
m
→{{header|OCaml}}
(OCaml solution) |
|||
Line 32:
type 'a tree = E | T of color * 'a tree * 'a * 'a tree
(** val balance :: color
let balance = function
|
|
|
|
|
(** val insert :: 'a -> 'a tree -> 'a tree *)
|