Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
461e6110efb699f2465e5a8a25d93f48e6ee40ce
/
.
/
examples
/
rust
/
max_array.rs
blob: 233601d26edbe9936090b09356b57f4847ed193b [
file
] [
log
] [
blame
] [
raw
]
pub
fn
max_array
(
x
:
&
mut
[
f64
;
65536
],
y
:
&[
f64
;
65536
])
{
for
i in
0.
.
65536
{
x
[
i
]
=
if
y
[
i
]
>
x
[
i
]
{
y
[
i
]
}
else
{
x
[
i
]
};
}
}