package core_kernel
Industrial strength alternative to OCaml's standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.14.1.tar.gz
sha256=1d91a0d58e9a98809eb3bc888ae716e786c68ad5d07a874c37d9c1ef9fd24438
md5=77b25affd5155128ca757d38e496d89f
doc/core_kernel.bus/Bus/Callback_arity/index.html
Module Bus.Callback_arity
Callback_arity
states the type of callbacks stored in a bus. Using Callback_arity
is an implementation technique that allows callbacks to be defined as ordinary n-ary curried functions (e.g., a1 -> a2 -> a3 -> r
), instead of forcing n-ary-variadic callbacks to use tuples (e.g., a1 * a2 * a3 -> r
). This also avoids extra allocation.
When reading the bus interface, keep in mind that each 'callback
is limited, through create
, to the types exposed by the variants in Callback_arity
.
val sexp_of_t :
('v_x__001_ -> Ppx_sexp_conv_lib.Sexp.t) ->
'v_x__001_ t ->
Ppx_sexp_conv_lib.Sexp.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>