For example if i have an list containing integers
arr = [1,2,3,4,5,6]
I would like to split this list into two lists based on specific indexes. If i specify the indexes 0,1 and 3 it should return the old list with the removed items and a new list containing only the specified items.
arr = [1,2,3,4,5,6]
foo(arr, "013"): # returns -> [3,5,6] and [1,2,4]