You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A "builder pattern" approach may be viable here to allow n-ary zipping operations. We could even allow masking (?) which is a very valuable operation.
zip_mut(&mut a).zip(&b).zip_mut(&mut c).apply(|x, y, z| *x = *y + *z);// This is intended to do the same as this would in numpy// mask = c > d;// a[mask] = b[mask]zip_mut(&mut a).zip(&b).mask(&c,&d, <_>::gt).apply(|aelt, belt| *aelt = *belt);