package batteries

  1. Overview
  2. Docs
A community-maintained standard library extension

Install

Dune Dependency

Authors

Maintainers

Sources

v3.9.0.tar.gz
md5=ea26b5c72e6731e59d856626049cca4d
sha512=55975b62c26f6db77433a3ac31f97af609fc6789bb62ac38b267249c78fd44ff37fe81901f1cf560857b9493a6046dd37b0d1c0234c66bd59e52843aac3ce6cb

doc/batteries.unthreaded/BatDynArray/Exceptionless/index.html

Module BatDynArray.ExceptionlessSource

Operations on DynArray without exceptions.

Sourceval 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.

  • since 3.3.0
Sourceval 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.

  • since 3.3.0
OCaml

Innovation. Community. Security.