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 Result.flatMap and tests #1100

Merged
merged 1 commit into from
Apr 19, 2017
Merged

Conversation

weissi
Copy link
Contributor

@weissi weissi commented Apr 19, 2017

No description provided.

@@ -57,6 +57,15 @@ public enum Result<Value, ErrorType: Swift.Error> {
}
}

public func flatMap<U>(_ transform: (Value) -> Result<U, ErrorType>) -> Result<U, ErrorType> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doc comment pls :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added one :)

@aciidgh
Copy link
Contributor

aciidgh commented Apr 19, 2017

LGTM

@weissi weissi force-pushed the jw-result-flat-map branch from 560abd1 to 5d95d64 Compare April 19, 2017 17:11
@aciidgh
Copy link
Contributor

aciidgh commented Apr 19, 2017

@swift-ci please smoke test

1 similar comment
@aciidgh
Copy link
Contributor

aciidgh commented Apr 19, 2017

@swift-ci please smoke test

@aciidgh aciidgh merged commit bb0b32f into swiftlang:master Apr 19, 2017
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