I'm trying to create a function that will take in one argument as a string, and delete that string from an array. : I'm trying to create a function that will take in one argument as a string, and delete that string from an array. I've looked and tried 'remove(at:)' but this is not working. I need the function to take in the droid's name, and delete it from the array. It's so simple, but I can't find anything anywhere that would help. I keep finding things that specify a certain place in the array as an Int, but I need the function to work with a string. 

    
    var starWarsDroids: [String] = ["R2-D2", "C-3P0", "IG-88", "BB-8"]


    func removeDroid(droid:String) {
    
        starWarsDroids.remove(at:0)
    }


    removeDroid(droid: "C-3P0")

    print(starWarsDroids)


This is all I could come up with, and I know it doesn't work, so please don't tell me it doesn't. There has to be a way to do this without specifying a place in the array with an Int. 
