I have a swift Array that I populate a UITableview with.
e.g
var array: Array<String> = ["ExampleString1","ExampleString2","ExampleString3"]
My question is how to do append all items that come after the Indexpath.row I press to a new array.
e.g I press the the first UITableview cell which is row 0 and in didSelectItemAtIndexPath I can pick up the indexpath
let test = array[indexPath.row]
If I pressed the first cell I want to add ExampleString2 and ExampleString3 by appending to my new array
var newArray: Array<String> = []
newArray.append(Everything After Indexpath that was pressed.)