You need to pass a collection, not an element, as the second argument.
b = Vector{Int}[A[3]]
julia> findin(A, b)
1-element Array{Int64,1}:
3
Your version was trying to match elements of A (vectors) to -1, 2, and 8, and
of course none of those match.
--Tim
On Sunday, August 24, 2014 02:06:06 PM K Leo wrote:
> What is wrong with the following?
>
> julia> A
> 4-element Array{Array{Int64,1},1}:
> [-1,2,4]
> [-1,2,7]
> [-1,2,8]
> [1,-2,10]
>
> julia> findin(A, A[3])
> 0-element Array{Int64,1}
