lec 06 modules???

This commit is contained in:
SowinskiBraeden committed 2026-02-12 11:50:38 -08:00
1 parent 2d9678fd1f
commit c8f6dd3df2
15 files changed
+464

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
(* type 'a t = Leaf | Node of 'a * 'a t * 'a t *)
type 'a t (* for abstract data type *)
val size : 'a t -> int
val height : 'a t -> int
val empty : 'a t
val is_empty : 'a t -> bool
val insert : 'a -> 'a t -> 'a t
val of_list : 'a list -> 'a t
val mem : 'a -> 'a t -> bool
val largest : 'a t -> 'a
val smallest : 'a t -> 'a
val delete : 'a -> 'a t -> 'a t