interleave
Alternates the elements of a and b, starting with a; the leftover of the longer slice
goes at the end.
Import
Section titled “Import”Cargo feature array (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | &[T] | The slice to take the first, third, … elements from. |
b | &[T] | The slice to take the second, fourth, … elements from. |
Returns
Section titled “Returns”Vec<T>
