ah, no, sorry, you are totally right here. I'll see if using number-sequence makes the code shorter.The code above looks fine to me. Another option would be to use
number-sequence and then filter out the ind value.
no, that would break functionality: I need to keep the given order.