🎓 Remove Indexes From an Array

by Patrick Corgan

Version 4 (October 2, 2023)

Download (511 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. Used Sid Stone's suggestions; much better 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 5 reviews

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

Rate and review within the app in the Community section.