package ppx_expect_nobase
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Cram like framework for OCaml (with stripped dependencies)
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppx_expect_nobase-0.17.3.0.tbz
sha256=ff2cb97c867a4bd3a0778ff0924c1cb8a82c7c531f81f2b0aa220b7c29758e40
sha512=3eae2efe081aeed87d44d46f960a66744ed6d90c78f07ba91639ff2694aea655d4b71c5865d97dd88c1681e3752b90c06c252595f67ff135fcce87c38085b81f
doc/ppx_expect_nobase.wrappers/Wrappers/Option/index.html
Module Wrappers.OptionSource
include module type of struct include Option end
Options
The type for option values. Either None or a value Some v.
none is None.
some v is Some v.
get o is v if o is Some v and raise otherwise.
join oo is Some v if oo is Some (Some v) and None otherwise.
fold ~none ~some o is none if o is None and some v if o is Some v.
Predicates and comparisons
is_none o is true if and only if o is None.
is_some o is true if and only if o is Some o.
equal eq o0 o1 is true if and only if o0 and o1 are both None or if they are Some v0 and Some v1 and eq v0 v1 is true.
compare cmp o0 o1 is a total order on options using cmp to compare values wrapped by Some _. None is smaller than Some _ values.
Converting
to_result ~none o is Ok v if o is Some v and Error none otherwise.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>