restructure + lecutre 07

This commit is contained in:
SowinskiBraeden committed 2026-02-19 11:59:58 -08:00
1 parent b8c19aa341
commit 7c3198fee4
96 files changed
+458 -4

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
let counter =
let c = ref 0 in
(fun () -> incr c; !c);;
let make_counter init =
let c = ref init in
(fun () -> let x = !c in incr c; x);;