Untitled

Anonymous
ocaml
11/10/2021 5:09 PM
132 B
24
Indexable
let rec sum_tree = function
  | Lf -> 0
  | Br (v, t1, t2) -> v + sum_tree(t1) + sum_tree(t2);;
Editor is loading...