Set cols from `first` to `last` in `inout` Array with cols from Array `new_cols`
(inout: &mut Array<T>, new_cols: &Array<T>, first: i64, last: i64)
| 390 | |
| 391 | /// Set cols from `first` to `last` in `inout` Array with cols from Array `new_cols` |
| 392 | pub fn set_cols<T>(inout: &mut Array<T>, new_cols: &Array<T>, first: i64, last: i64) |
| 393 | where |
| 394 | T: HasAfEnum, |
| 395 | { |
| 396 | let step: f64 = if first > last && last < 0 { -1.0 } else { 1.0 }; |
| 397 | let seqs = [Seq::default(), Seq::new(first as f64, last as f64, step)]; |
| 398 | assign_seq(inout, &seqs, new_cols) |
| 399 | } |
| 400 | |
| 401 | /// Get `slice_num`^th slice from `input` Array |
| 402 | /// |
nothing calls this directly
no test coverage detected