package ppx_diff
A PPX rewriter that genreates the implementation of [Ldiffable.S].
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.1.tar.gz
md5=cfec5d638a1bf1ea77707d10eed5d2d7
sha512=5848274cb0c5acd1ee3f29318e6111c5fef4b357aeda78120e0370067b9b23f62bb57e1e0be948c3af385b5900a3e0fb657f26dd4fe7ee95cd7002b9d8b68547
doc/src/ppx_diff.diffable/atomic.ml.html
Source file atomic.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
open Base module Make_base_diff (M : sig type t [@@deriving equal] end) = struct let[@inline] get ~from ~to_ = if phys_equal from to_ || M.equal from to_ then Optional_diff.none else Optional_diff.return to_ ;; let[@inline] apply_exn _ t = t let[@inline] of_list_exn = function | [] -> Optional_diff.none | _ :: _ as l -> Optional_diff.return (List.last_exn l) ;; end module Make_diff_plain (M : sig type t [@@deriving equal] end) = struct type derived_on = M.t type t = M.t [@@deriving equal] include Make_base_diff (M) end module Make_diff (M : sig type t [@@deriving sexp, bin_io, equal] end) = struct type derived_on = M.t type t = M.t [@@deriving sexp, bin_io, equal] include Make_base_diff (M) end module Make_plain (M : sig type t [@@deriving equal] end) = struct module Diff = Make_diff_plain (M) end module Make (M : sig type t [@@deriving equal, sexp, bin_io] end) = struct module Diff = Make_diff (M) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>