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

Add map to pair protocols #202

Merged
merged 10 commits into from
Nov 16, 2018
Merged

Add map to pair protocols #202

merged 10 commits into from
Nov 16, 2018

Conversation

bwetherfield
Copy link
Member

No description provided.

@jsbean
Copy link
Member

jsbean commented Nov 16, 2018

@bwetherfield, wanna swift test --generate-linuxmain on this to make sure Linux sees the tests?


extension Pair {

public func map <P,C,D> (_ f: (A,B) -> (C,D)) -> P where P: Pair, P.A == C, P.B == D {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some doc comments for the public funcs?

@jsbean
Copy link
Member

jsbean commented Nov 16, 2018

Ok, I'm gonna put out the stableSort 🔥 🚒 👨‍🚒 .

@jsbean jsbean merged commit 83e5818 into master Nov 16, 2018
@jsbean jsbean deleted the map-for-pair branch November 17, 2018 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants