Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
2df1034cd4c7aa46e7ac3ed6b2496830c6b21df5
/
.
/
examples
/
rust
/
Max_array.rs
blob: 24d9683e8cb7af0fdaffb4b97faf80b088de3640 [
file
] [
log
] [
blame
] [
raw
]
pub
fn
max_array
(
x
:
&
mut
[
f64
;
65536
],
y
:
&[
f64
;
65536
])
{
for
(
x
,
y
)
in x
.
iter_mut
().
zip
(
y
.
iter_mut
())
{
*
x
=
if
*
y
>
*
x
{
*
y
}
else
{
*
x
};
}
}