Turn a list of number into other number. i think

hey guys.

im trying to figure out how to turn a list of points (0,1,2,3,4,5 etc) and “name them” differently… (0,1,2,0,1,2,0,1,2 etc)

0 - 0
1 -1
2 - 2
3 -0
4 - 1

i know this is simple, but i cant seem to find the answer :slight_smile:

i’m almost 100% sure there is a better way & someone’s gonna enlighten us.
in the meantime:

clunkydunkd.gh (16.7 KB)

edit: the output B of shortest list is actually the same as that of replace items - oh well. i guess i’m not so sure what you’re after after all.

I don’t understand the mapping you’re after. You mentioned points, but these are numbers.