how simple function index(of:) implemented in swift 3 extension. please provide example practices required implement example are.
if looking syntax of extension of array in swift 3 here is
extension array { func foo() { } } you can restrict extension available element of array conform protocol
extension array element : equatable { func foo() { } }
Comments
Post a Comment