🎓 Remove Indexes From an Array

by Patrick Corgan

Version 4 (March 14, 2019)

Download (30 downloads)

𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯
This flow demonstrates how to remove indexes from an array, and shows a dialog box explaining the steps.
It uses the Dialog choice block to select the values to remove, then the keys() function, the disjoint() function, and the sift() function to build the new array.

Changed: Fixed my explanation. It was way off on a couple points, but it's correct now.

Sid Stone: I was all excited about your suggestion until I realized that it wouldn't work as expected on arrays with duplicate values. In that case, it removes all indexes with the selected value.
I used your second suggestion and it works wonderfully. Thank you!

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.