Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Variables/OCaml/variables-1.ocaml
Normal file
1
Task/Variables/OCaml/variables-1.ocaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
let x = 28
|
||||
1
Task/Variables/OCaml/variables-2.ocaml
Normal file
1
Task/Variables/OCaml/variables-2.ocaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
let y = ref 28
|
||||
2
Task/Variables/OCaml/variables-3.ocaml
Normal file
2
Task/Variables/OCaml/variables-3.ocaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
!y (* access *)
|
||||
y := 34 (* modification *)
|
||||
9
Task/Variables/OCaml/variables-4.ocaml
Normal file
9
Task/Variables/OCaml/variables-4.ocaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue