package capnp-rpc
Cap'n Proto is a capability-based RPC system with bindings for many languages
Install
Dune Dependency
Authors
Maintainers
Sources
capnp-rpc-2.1.tbz
sha256=4b59a4147cf6e49c650dbfa4cdb918aec3be69cffd1ef6b5c818584464feb987
sha512=69114597e9cd8ad42c72c1751796b216f98f2a9f09f50a0628b4a3259c2f9b169fd47a73be7b76cfda298a6c202bc79762116865272e35ca0d0914242ace34d7
doc/src/capnp-rpc.proto/rO_array.ml.html
Source file rO_array.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 40 41 42 43 44 45 46 47 48
type 'a t = 'a array let init = Array.init let of_list = Array.of_list let get_exn t i = t.(i) let length = Array.length let map = Array.map let mapi = Array.mapi let iter = Array.iter let iteri = Array.iteri let fold_left = Array.fold_left let get ~oob t i = if i < 0 || i >= Array.length t then oob else Array.get t i let find fn t = let rec loop i = if i = Array.length t then None else ( let item = t.(i) in if fn item then Some item else loop (i + 1) ) in loop 0 let empty = [| |] let pp x = Fmt.(brackets (array ~sep:(const string ", ") x)) let equal eq a b = let l = Array.length a in if l <> Array.length b then false else ( let rec loop i = if i = 0 then true else ( let i = i - 1 in eq a.(i) b.(i) && loop i ) in loop l ) let release t v = for i = 0 to Array.length t - 1 do t.(i) <- v; done
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>