import UIKit extension String { mutating func appendString(string: String) { self = self.stringByAppendingString(string) } }
import Foundation extension Array where Element : Equatable { // Remove first collection element that is equal to the given `object`: mutating func removeObject(object : Generator.Element) { if let index = self.indexOf(object) { self.removeAtIndex(index) } } }@H_301_6@
protocol MyProtocol { mutating func MyProtocolDidChange(index: Int) } struct MyStruct: MyProtocol { let index = 4 mutating func MyProtocolDidChange(index: Int) { index = index } }