Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,5 @@
type tree = Empty
| Leaf of int
| Node of tree * tree
let t1 = Node (Leaf 1, Node (Leaf 2, Leaf 3))

View file

@ -0,0 +1 @@
type point = { x : int; y : int }

View file

@ -0,0 +1 @@
let p = { x = 4; y = 5 }

View file

@ -0,0 +1 @@
p.x (* evaluates to 4 *)

View file

@ -0,0 +1 @@
type mutable_point = { mutable x2 : int; mutable y2 : int }

View file

@ -0,0 +1,3 @@
let p2 = { x2 = 4; y2 = 5 } in
p2.x2 <- 6;
p2 (* evaluates to { x2 = 6; y2 = 5 } *)

View file

@ -0,0 +1 @@
let p = (2,3)