Creating a vector from a vector of values and a vector of indices to the first vector

julia> x[y]
4-element Array{Int64,1}:
 1
 2
 2
 5
4 Likes