On 30/05/2020 09:23, Mario Frasca wrote: >> 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. ah, no, sorry, you are totally right here.  I'll see if using number-sequence makes the code shorter.