Using array.each_with_index returned an array containing the indexes of several elements which I set equal to a variable, indexes. I just want to know how I can then find the elements at each of those indexes like array[indexes] #=> element 1, element 2, etc. I tried the previous example with no luck, and also array[indexes.each {|x| x}].
Not sure why this is so hard, but I am brand new to coding and I couldn't find the answer elsewhere.