I have two arrays:
["mo", "tu", "we", "th", "fr", "sa", "su"] and [1, 5]
What is the shortest, most clean way to make a new array from the first array, based on the indexes of the second array? I would like to do something like this:
["mo", "tu", "we", "th", "fr", "sa", "su"][[1, 5]] (not possible this way)
This would yield ["tu", "sa"].
How could this be done? Thanks in advance!