package amqp-client
Amqp client library compatable with async and lwt.
Install
Dune Dependency
Authors
Maintainers
Sources
1.1.4.tar.gz
sha256=f3ce83cf82d63f307e8cc7c07938e63fdb57d9185d66b724587847c66a1d8985
md5=9094e13ffda6ab9ee06eca6588fe841d
doc/src/amqp-client.lib/option.ml.html
Source file option.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
(**/**) type 'a t = 'a option let get ~default = function | None -> default | Some v -> v let get_exn ?(exn=Invalid_argument "None") = function | None -> raise exn | Some v -> v let map_default ~default ~f = function | None -> default | Some v -> f v let map ~f = function | None -> None | Some v -> Some (f v) let iter ~f = function | None -> () | Some v -> f v (**/**)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>