Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include A end
for_all2 p a1 a2
checks if the corresponding elements of arrays a1
and a2
satisfy the predicate p
. The Invalid_argument
exception is raised if the arrays do not have the same size.
pp pp_elt sep oc a
prints the array list a
on the channel oc
using sep
as separator, and pp_e
for printing the elements.
eq eq_elt a1 a2
tests the equality of a1
and a2
, comparing their elements with eq_elt
.
max_index ?cmp a
returns the index of the first maximum of array a
according to comparison ?cmp
. If cmp
is not given, defaults to Stdlib.compare
.
max ?cmp a
returns the higher element according to comparison function ?cmp
, using Stdlib.compare
if not given, in array a
.