Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
let process items =
  let total = ref 0 in
  List.iter (fun v ->
    total := !total + v) items;
  match !total with
  | 0 -> "zero"
  | _ -> "many"

let config = {
  name = "test";
  age = 1;
}

let nums = [
  1;
  2;
]

let classify x =
  if x > 0 then
    "pos"
  else
    "neg"

module M = struct
  let x = 1
  let y = 2
end