package plebeia
Functional storage using Merkle Patricia tree
Install
dune-project
Dependency
Authors
Maintainers
Sources
plebeia-2.0.1.tar.gz
md5=f7d5a3c433784118777699713d437f00
sha512=56d88855cd5553f8f398436c67df2229e4ccad75143057704e7af3153aad47ee6f09e6aeada049514a77871096aeb912ea3ddc4ad620970bf8301c2ee27f4c54
doc/src/plebeia/index.ml.html
Source file index.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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2019,2020 DaiLambda, Inc. <contact@dailambda.jp> *) (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* copy of this software and associated documentation files (the "Software"),*) (* to deal in the Software without restriction, including without limitation *) (* the rights to use, copy, modify, merge, publish, distribute, sublicense, *) (* and/or sell copies of the Software, and to permit persons to whom the *) (* Software is furnished to do so, subject to the following conditions: *) (* *) (* The above copyright notice and this permission notice shall be included *) (* in all copies or substantial portions of the Software. *) (* *) (* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*) (* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *) (* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *) (* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*) (* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *) (* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *) (* DEALINGS IN THE SOFTWARE. *) (* *) (*****************************************************************************) type t = int let (+) = (+) let (-) = (-) let ( * ) = ( * ) let (/) = (/) let pred = pred let succ = succ let max_int = Stdint.Uint32.(to_int max_int) let zero = 0 let one = 1 let min i j = if compare i j = -1 then i else j let max i j = if compare i j = -1 then j else i let zero_then_none x = if x = zero then None else Some x let compare (x : int) y = Stdlib.compare x y module Set = Set.Make(struct type nonrec t = t let compare = compare end) module Map = Map.Make(struct type nonrec t = t let compare = compare end) let pp = Format.pp_print_int let to_int x = x let of_int x = x let to_uint32 = Stdint.Uint32.of_int let of_uint32 = Stdint.Uint32.to_int let to_int64 = Int64.of_int let of_int64 = Int64.to_int module Unsafe = struct let of_int = of_int let to_int = to_int let to_int32 = Int32.of_int let of_int32 = Int32.to_int end let to_bytes_big_endian i = Stdint.Int64.to_bytes_big_endian @@ Int64.of_int i let of_bytes_big_endian b s = Int64.to_int @@ Stdint.Int64.of_bytes_big_endian b s
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>