Function beagle::scalar_array::vec_array::fold2
[−]
[src]
pub fn fold2<S, R, T, F0, F, O>(
s: <R as Array<S>>::Type,
t: <R as Array<T>>::Type,
f0: F0,
f: F
) -> O where
R: Dim<S> + Dim<T>,
F0: FnOnce(S, T) -> O,
F: FnMut(O, S, T) -> O,
R::Smaller: Array<S> + Array<T>,
Fold all the elements of two 1d arrays. The first elements are mapped with f0
,
then folding continues with f
for other elements.