Skip to content

Instantly share code, notes, and snippets.

@tomaszperek
Created October 10, 2015 11:21
Show Gist options
  • Save tomaszperek/a6863bba0b169a4bb08d to your computer and use it in GitHub Desktop.
Save tomaszperek/a6863bba0b169a4bb08d to your computer and use it in GitHub Desktop.
Zip3 helper
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