Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
bbc72fd64de4947b43e11239ad269a1a1713454e
/
.
/
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
]
};
}
}