Debian Codegraph @

tests/indent/ocaml.ml

raw symbols SCIP
1 let process items =
2 let total = ref 0 in
3 List.iter (fun v ->
4 total := !total + v) items;
5 match !total with
6 | 0 -> "zero"
7 | _ -> "many"
8
9 let config = {
10 name = "test";
11 age = 1;
12 }
13
14 let nums = [
15 1;
16 2;
17 ]
18
19 let classify x =
20 if x > 0 then
21 "pos"
22 else
23 "neg"
24
25 module M = struct
26 let x = 1
27 let y = 2
28 end