> var result: Index? = nil
> for i in indices {
> if predicate(self[i]) { result = i }
> }
> return resultThat is better! I didn't think to just give up on testing the minimum number of elements. -- Brent Royal-Gordon Architechies _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
