Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
a6363ee3d4a62e82f7446ee691b6e2533fba43a2
/
.
/
examples
/
ocaml
/
max_array.ml
blob: c37d2bac8b54759e25eb35ec2adb8b80d0a855d7 [
file
] [
log
] [
blame
] [
raw
]
let
max_array array
=
let
max
=
ref
0
in
for
i
=
0
to
Array
.
length array
do
let
el
=
array
.(
i
)
in
if
el
>
!
max
then
max
:=
el
;
done
;
!
max