Indexin() for two identical vectors

According to the documentation, indexin(a,b) should return the first index in b for each value in a.

a = [5,2,5]

returns [3,2,3]. Shouldn’t it return [1,2,1]?

Which julia version are you on? I get the expected behaviour on 0.7/1.0. On 0.6.4 I get the behaviour you see.

Then it should be solved (I am on 0.6.4). :wink: