I am making the assumption that the literation over a list gives you the index number of each element. If I have 3 elements, the %l1 variable would take on the values 0, 1, and 2. 5 elements 0, 1, 2, 3, and 4. Where the return of results may produce a variable length list, this is what lead me to the question of the basis being a variable…..
Any thoughts are welcome including other creative alternatives….