[SR-1965] partition algorithm has the wrong signature #44574
Labels
affects ABI
Flag: Affects ABI
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: bf485841692f20d0a02557286ac6f079
Issue Description:
partition should take a unary predicate, per https://github.com/apple/swift/blob/master/test/Prototypes/Algorithms.swift#L307. Right now it takes a binary predicate and uses the value of an arbitrarily-chosen pivot element.
Swift evolution proposal: https://github.com/apple/swift-evolution/blob/master/proposals/0120-revise-partition-method.md
The text was updated successfully, but these errors were encountered: