by Patrick Corgan
𝘉𝘺 𝘗𝘢𝘵𝘳𝘪𝘤𝘬 𝘊𝘰𝘳𝘨𝘢𝘯
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!
Rate and review within the app in the Community section.