File tree Expand file tree Collapse file tree 3 files changed +1
-24
lines changed
Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ let width_ = 8
33(* Helper functions *)
44let [@ inline] get_ b i = Char. code (Bytes. get b i)
55let [@ inline] unsafe_get_ b i = Char. code (Bytes. unsafe_get b i)
6- let [@ inline] set_ b i v = Bytes. set b i (Char. unsafe_chr v)
76let [@ inline] unsafe_set_ b i v = Bytes. unsafe_set b i (Char. unsafe_chr v)
87let [@ inline] mod_ n = n land 0b111
98let [@ inline] div_ n = n lsr 3
Original file line number Diff line number Diff line change @@ -42,15 +42,13 @@ module A = struct
4242 let length = Array. length
4343 let iteri = Array. iteri
4444 let iter = Array. iter
45- let fold = Array. fold_left
4645 let map = Array. map
4746
4847 let iteri_rev f a =
4948 for i = length a - 1 downto 0 do
5049 f i a.(i)
5150 done
5251
53- let create () = [||]
5452 let empty = [||]
5553 let is_empty a = length a = 0
5654 let return x = [| x |]
@@ -72,21 +70,6 @@ module A = struct
7270 if n = 0 then invalid_arg " A.pop" ;
7371 Array. sub a 0 (n - 1 )
7472
75- let append a b =
76- let n_a = length a in
77- let n_b = length b in
78- if n_a + n_b > max_length then invalid_arg " A.append" ;
79- if n_a = 0 then
80- b
81- else if n_b = 0 then
82- a
83- else (
84- let arr = Array. make (n_a + n_b) a.(0 ) in
85- Array. blit a 0 arr 0 n_a;
86- Array. blit b 0 arr n_a n_b;
87- arr
88- )
89-
9073 let set ~mut a i x =
9174 if i < 0 || i > length a || i > = max_length then invalid_arg " A.set" ;
9275 if i = length a then (
@@ -306,11 +289,6 @@ let to_gen m =
306289
307290let choose m = to_gen m ()
308291
309- let choose_exn m =
310- match choose m with
311- | None -> raise Not_found
312- | Some (k , v ) -> k, v
313-
314292let pp ppv out m =
315293 let first = ref true in
316294 iter m ~f: (fun v ->
Original file line number Diff line number Diff line change 11(env
22 (_
3- (flags :standard -warn-error -a+8 -w -32-70 -w +a-4-32- 40-42-44-70
3+ (flags :standard -warn-error -a+8 -w -32-70 -w +a-4-40-42-44-70
44 -color always -safe-string -strict-sequence)
55 (ocamlopt_flags :standard -O3 -unbox-closures -unbox-closures-factor 20
66 -inline 100)))
You can’t perform that action at this time.
0 commit comments