Retrieve Multiple values form an Array for given array of indices

I have an array and its selected indices in an integer array.I want to load the values of this array for the selected indices to a variable. Any suggestions? I think it will be apply function over index(). But not sure of its syntax.

OriginalPostID-257076

  Discussion posts and replies are publicly visible