Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-1965] partition algorithm has the wrong signature #44574

Closed
gribozavr opened this issue Jul 1, 2016 · 1 comment
Closed

[SR-1965] partition algorithm has the wrong signature #44574

gribozavr opened this issue Jul 1, 2016 · 1 comment
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

Comments

@gribozavr
Copy link
Collaborator

Previous ID SR-1965
Radar rdar://problem/26708352
Original Reporter @gribozavr
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, AffectsABI
Assignee None
Priority Medium

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

@aschwaighofer
Copy link
Member

Merged in 558f2b8.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants