RosettaCodeData/Task/Variables/OCaml/variables-4.ocaml

10 lines
177 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
let sum = (* sum is bound to 181 *)
let a = 31
and b = 150 in
(a + b)
let sum () = (* sum is a function which returns 181 *)
let a = 31
and b = 150 in
(a + b)