Comparing two lists and getting the index of the "matching pairs"

Hey everyone,

I want to compare two lists and get the Index of the entries in the larger list that match with the entries of the smaller list.

I would like it to look like:

0: false
1: false
.
.
.
13: true
14: true
15: false
.
.
.
2857:false/true

I hope you get the idea. So I tried two ways which not giving me the wanted result. Maybe someone has an idea how it could work out :slight_smile:

Best regards Tilman

@tilman something like this? Swap the β€˜list’ input to get the indices you want.

5 Likes

@tilman

4 Likes

Wow, cool idea about intersecting lists :bulb: