restructure + lecutre 07
This commit is contained in:
96 files changed
+458
-4
No files matched your search
@@ -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);;
|
||||
Reference in new issue
Block a user