Skip to content

Commit

Permalink
flatMap operator
Browse files Browse the repository at this point in the history
  • Loading branch information
nghialv committed Jun 10, 2015
1 parent a14090b commit a580ff2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Future/Future.swift
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ infix operator <^> {
}

/*
// Avoid conflict with the operator of Result
infix operator >>- {
// Left associativity
associativity left
Expand All @@ -244,4 +245,4 @@ public func <^> <T, U, Error> (future: Future<T, Error>, transform: T -> U) -> F
// Operator for `flatMap`
public func >>- <T, U, Error> (future: Future<T, Error>, transform: T -> Future<U, Error>) -> Future<U, Error> {
return future.flatMap(transform)
}
}

0 comments on commit a580ff2

Please sign in to comment.