Created
October 10, 2015 11:21
-
-
Save tomaszperek/a6863bba0b169a4bb08d to your computer and use it in GitHub Desktop.
Zip3 helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def zip3[A, B, C](fA: Future[A], fB: Future[B], fc: Future[C]): Future[(A, B, C)] = | |
(fA zip fB zip fC) map { case ((a, b), c) => (a, b, c)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment