image.zip(getDetails("swift")).onSuccess { image, details in // do something with the image and the details }.onFailure { error in // deal with the error }
return lhs.map { l in return l + rhs } } getDetails("swift").map { details in return details.substringToIndex( details.startIndex.advancedBy(30) ) }.map { summary in return summary + "... Read more" } // subtitle is a Future<String, Error> let subtitle =