🎓 Remove Indexes From an Array

by Patrick Corgan

Version 4 (August 5, 2019)

Download (263 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 4 reviews

5 stars
4 stars
3 stars
2 stars
1 star

Rate and review within the app in the Community section.