package batteries
A community-maintained standard library extension
Install
Dune Dependency
Authors
Maintainers
Sources
v3.5.0.tar.gz
md5=e4b70d1a716f0aaba36f419f618d0a2e
sha512=a31f1f8cf2c7c3c6c757f3bfae98ff61bb32bab6a1f1e215937df42bcfa447aad41a37edb28d7bcecb88b3838ed8bd57142bcf8e2d28e09bb538055fd8a3b72d
doc/batteries.unthreaded/BatDynArray/Exceptionless/index.html
Module BatDynArray.Exceptionless
Operations on DynArray
without exceptions.
val find : ('a -> bool) -> 'a t -> 'a option
find p a
returns Some x
, where x
is the first element of array a
that satisfies the predicate p
, or None
if there is no such element.
val findi : ('a -> bool) -> 'a t -> int option
findi p a
returns Some n
, where n
is the index of the first element of array a
that satisfies the predicate p
, or None
if there is no such element.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>