Replace Item with wrap option true

I wonder how the Replace items wraps around the bounds. Given a list of length 121, the index 125 should be redirected to index 4 (125%121 = 4) or more explicitly
121->0 , 122->1 , 123->2 , 124->3 and 125->4
but it seems that component falls one index behind, in attachment elements are replaced with -1.

happened to me when number of items in Replace Items small “L” input was higher than number of items inReplace Items “i” input, so one item gets just added in the final output

please check that List Length in input L and output L of Replace Items is the same (or post the gh file)


edit:

it behaves weirdly also on my side :slight_smile:

RI.gh (12.4 KB)

weird indeed:


RI_2.gh (14.4 KB)

@wim it looks like:

1 Like

old problem, never resolved

5 Likes