[Accepted] SE-0032: Add find method to Sequence


(Chris Lattner) #1

Proposal link: https://github.com/apple/swift-evolution/blob/master/proposals/0032-sequencetype-find.md

Hello Swift Community,

The review of SE-0032: "Add find method to Sequence" ran from April 28...May 3, 2016. The proposal is *accepted* for Swift 3, with a requested naming revision:

// Original proposal:
numbers.find { isPrime($0) }
numbers.find(isPrime)

// Requested update:
numbers.first { isPrime($0) }
numbers.first(where: isPrime)

Thank you to Kevin Ballard for proposing this!

-Chris
Review Manager