aboutsummaryrefslogtreecommitdiff
path: root/discocaml/arraylist.mli
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-01-19 10:39:43 -0600
committerNathan Ringo <nathan@remexre.com>2024-01-19 10:39:43 -0600
commit951d2a0e821d9eecfcb3a60f1f4411cc4aa3a3c5 (patch)
tree580f9595bc8ffbfc963bff6175a54520f3ee1a28 /discocaml/arraylist.mli
parent729ddbe62a25675d5dcd993b6e42e26e4cd04c74 (diff)
Flattens the AST.
Diffstat (limited to 'discocaml/arraylist.mli')
-rw-r--r--discocaml/arraylist.mli9
1 files changed, 9 insertions, 0 deletions
diff --git a/discocaml/arraylist.mli b/discocaml/arraylist.mli
new file mode 100644
index 0000000..e42d194
--- /dev/null
+++ b/discocaml/arraylist.mli
@@ -0,0 +1,9 @@
+type 'a t
+
+val make : int -> 'a -> 'a t
+val length : 'a t -> int
+val get : 'a t -> int -> 'a
+val set : 'a t -> int -> 'a -> unit
+val push : 'a t -> 'a -> unit
+val to_array : 'a t -> 'a array
+val pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit