Im trying to make a calculator in Swift but I have a problem I have put everything in a array and want to find the index of the X and /
willBeCountArray.index(of: "x")
willBeCountArray.index(of: "/")
The array looks as it should and this finds the index but it write it out as: ex.
[1,x,5,+,4]
willBeCountArray.index(of: "x") is printed as Optional(1) `
--> I want to compare x and / index to start from the left. But it wont go in this format
WHAT DO I DO?