Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
cc0e17e2d5eca68e5d25ed53d9e03b5cec1c45ea
/
.
/
examples
/
rust
/
Max_array.rs
blob: fe217cdccdb9e5f400a6583a253891fd346d8f87 [
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
())
{
*
x
=
if
*
y
>
*
x
{
*
y
}
else
{
*
x
};
}
}