Advertisement
KonstantyNil

Untitled

Jul 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.30 KB | None | 0 0
  1.   func returnProduct(productID: String) {
  2.         products.append(productID)
  3.     }
  4.    
  5.     func removeProduct(productID: String) {
  6.         for i in 0 ..< products.count {
  7.             if products[i].productID == productID {
  8.             products.remove(at: i)
  9.             break
  10.             }
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement