ArrayGetValuesByIndexArray Op
Pick values from input array at given indices and stride
Summary (oneliner)
<h4>Base example</h4> <pre><code class="language-js">const input_array = ['I', 'love', 'not', 'cables']; const array_stride = 1; const index_array = [0, 1, 3];
const result = ['I', 'love', 'cables']; </code></pre> <h4>Advanced case, changing the input stride</h4> <p>Changing the stride is helpful to pick values from Array2, Array3 or Array4. </p> <pre><code class="language-js">const input_array = [0,0,0, 1,1,1, 2,2,2]; const stride = 3; const index_array = [0, 2];
const result = [0,0,0, 2,2,2]; </code></pre>
- Ops.Array.ArrayGetValuesByIndexArray
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ArrayGetValuesByIndexArray example
Demonstrate how to use ArrayGetValuesByIndexArray OP
INPUT PORTS
<p>Input array with all values</p>
<i>integer</i>
)<p>1,2,3,4</p>
<p>List of indices to pick</p>
OUTPUT PORTS
Patches using ArrayGetValuesByIndexArray
Changelog
created op | kikohs - 2023-02-28 18:14 | |
cloned op from Ops.User.kikohs.ArrayGetValuesByIndexArray | stephan - 2023-03-06 14:22 | |
rename | Ops.User.stephan.ArrayGetValuesByIndexArray renamed to Ops.Dev.Arrays.ArrayGetValuesByIndexArray | stephan - 2023-03-06 15:12 |
rename | Ops.Dev.Arrays.ArrayGetValuesByIndexArray renamed to Ops.Arrays.ArrayGetValuesByIndexArray | stephan - 2023-03-06 15:16 |
rename | Ops.Arrays.ArrayGetValuesByIndexArray renamed to Ops.Array.ArrayGetValuesByIndexArray | pandur - 2023-12-06 09:29 |