Kxclib.Array0
include module type of struct include Stdlib.Array end
include sig ... end
val mean : ?f:(float -> float) -> float t -> float
blastsat
find the last element e
such that pred e
being true
using binary search.
more specifically,
pred
yields false
for every element, Not_found
is raisedwhen there exists i >= 0
such that
forall k <= i. (pred arr.(k)) = true /\ forall k > i, (pred arr.(k)) = false
, the i
-th element will be returned