package tls
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Transport Layer Security purely in OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
tls-2.0.3.tbz
sha256=d7159ba745f3da2e73844353f020fdbc767393882b47565f8b61b941c351c3d7
sha512=fc136c13bd4c8ff1e69250809c63495299d6e00a58252ed2dd76bd704f7b95f8baa45bde3c5f0f27152767f9986fa3ba183f28d68d336dbf25a25482bd8b44b7
doc/src/tls/utils.ml.html
Source file utils.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40module List_set = struct let subset ?(compare = compare) l1 l2 = let rec loop xs ys = match (xs, ys) with | ([], _) -> true | (_, []) -> false | (x::xss, y::yss) -> match compare x y with | -1 -> false | 1 -> loop xs yss | _ -> loop xss yss in loop (List.sort compare l1) (List.sort compare l2) let is_proper_set l = let rec repeats = function | x::(y::_ as xs) -> x = y || repeats xs | _ -> false in not @@ repeats (List.sort compare l) end let rec map_find ~f = function | [] -> None | x::xs -> match f x with | None -> map_find ~f xs | Some _ as x' -> x' let init_and_last list = List.fold_right (fun x -> function | None -> Some ([], x) | Some (xs, y) -> Some (x::xs, y)) list None let rec first_match l1 = function | [] -> None | x::_ when List.mem x l1 -> Some x | _::xs -> first_match l1 xs let sub_equal ~off ~len v x = v = String.sub x off len
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>