Attached is a patch which works correctly to calculated the interval between the first element in a set and the successive elements. (Even if there is a much more concise way of doing this, let’s live with this to address the issue.)
I’d now like to iterate this patch so that it makes the same calculation from each successive element. For example, the next iteration would produce (1 2 4 5 7 9 ), that results from the calculations 3 minus 2, 4 minus 3, etc.
How do I do that? Thanks!
PS: If you have a really elegant alternative to the patch, I’d love to see it… but I do want to understand how to do this nested loop. I realize it could involve “rest” but I can’t figure it out.
working loops 7.opat (7.1 KB)