I’ve said this too many times, but Bubble is so dumb on this. (1) infinite recursion is no big deal in the page (though it’s a huge issue in the backend, but fully supported) and (2) what we really want is a :map operator for lists.
We ALMOST have a generalized map operation given that we have :each item formatted as text and :format as text and :split, but the type conversion hokey-pokey is absurd (and not all potential conversions are possible).
@Jici There’s no reason except for (fairly minor) code bloat in run.js that Bubble doesn’t support .map() and the other array methods that have (item, index, array). The implementation of .filter() (as :filter) is fairly robust compared to JavaScript, so all of these things could just be grafted on to the existing :filter interface. (So, .findIndex() would be natural here instead of .indexOf() which doesn’t fit the pattern of the more modern methods.)