package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.lwt-result-stdlib/Tezos_lwt_result_stdlib/Lwtreslib/Traced/Monad/Option_syntax/index.html
Module Monad.Option_syntax
Syntax module for Option. This is intended to be opened locally in functions which use option
for control-flow. Within the scope of this module, the code can include binding operators, leading to a let
-style syntax.
See also Option
Note that we do not provide return_some
nor return_none
. Both of these functions are possible but somewhat confusing and rarely useful in practice. If you need to carry option
s within a Option-monad computation (yielding to values of the type 'a option option
), you need to do so by hand: return (Some …)
and return None
.
let*
is a binding operator alias for Option.bind
.
let+
is a binding operator alias for Option.map
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>