File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 3
3
ocaml setup.ml -configure
4
4
ocaml setup.ml -build
5
5
6
+ clean :
7
+ rm -r _build
8
+
6
9
install :
7
10
./remove_existing.sh
8
11
ocaml setup.ml -install
Original file line number Diff line number Diff line change @@ -358,11 +358,14 @@ module Stream = struct
358
358
let zip = zip_with ~f: (fun x y -> (x, y))
359
359
360
360
let zip_many ts ~f =
361
+ print_endline " Stream.zip_many" ;
361
362
let on_listeners = Inttbl. create () in
362
363
let passive_listeners = Inttbl. create () in
363
364
let qs = Array. init (Array. length ts) ~f: (fun _ -> Queue. create () ) in
364
365
let parents = Array. mapi ts ~f: (fun i t ->
366
+ print_endline (" Stream.zip_many: mapi with i = " ^ string_of_int i);
365
367
add_off_listener t (fun x ->
368
+ print_endline " Stream.zip_many: listener" ;
366
369
Queue. enqueue qs.(i) x;
367
370
if Array. for_all qs ~f: (fun q -> Queue. length q > 0 )
368
371
then notify_all [|on_listeners; passive_listeners|] (f (Array. map ~f: Queue. dequeue_exn qs)))
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ let switch_test =
14
14
let s = match lbl with `A -> " A" | `B -> " B" | `C -> " C" in
15
15
map (ticks 20. ) ~f: (fun _ -> s))))
16
16
17
- let () = Frp.Stream. iter switch_test ~f: Core. println |> ignore
17
+ let () = Frp.Stream. iter switch_test ~f: print_endline |> ignore
You can’t perform that action at this time.
0 commit comments