package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-libs.test-helpers/Tezos_test_helpers/Qcheck_extra/Applicative/index.html
Module Qcheck_extra.Applicative
Source
Applicative extends Functor
with an map2
and return
method, allowing us to lift functions of arbitrary arity.
We can define and+
in terms of map2
and vice versa:
let (and+) = map2 (fun x y -> (x,y))
let map2 f x y =
let+ a = x
and+ b = y in
f x y
assuming
(and+) = product
and
(let+) x f = map f x
.
An Applicative
should satisfy:
- Associativity:
product (product x y) z = product x (product y z)
- Identities:
product (return ()) x = x = product x (return ())
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>