julia> a=[1,3,5,7]
4-element Array{Int64,1}:
1
3
5
7
julia> b=[2,3,5,6,7]
5-element Array{Int64,1}:
2
3
5
6
7
julia> intersect(a,b)
3-element Array{Int64,1}:
3
5
7
julia> union(a,b)
6-element Array{Int64,1}:
1
3
5
7
2
6
Le lundi 4 juillet 2016 04:18:10 UTC+2, siyu song a écrit :
>
> But intersect doesn't tell us the index of the elements in the
> matrix(array), I think.
>
