Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
5b92f11e762f8e87a76eb7cef0dab7f0883f47cb
/
.
/
examples
/
rust
/
max_array.rs
blob: 7fb610aaaecfa2fa8ee0b4863697b55febe01066 [
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
]
};
}
}