Skip to content

Instantly share code, notes, and snippets.

@mmollaverdi
Created October 27, 2016 17:41
Show Gist options
  • Save mmollaverdi/c83bdf161cda8ea3a20faa4c68bc1182 to your computer and use it in GitHub Desktop.
Save mmollaverdi/c83bdf161cda8ea3a20faa4c68bc1182 to your computer and use it in GitHub Desktop.
def map2[A, B, C](task1: Task[A], task2: Task[B])(combine: (A, B) => C): Task[C] = {
Task.mapBoth(task1, task2)(combine)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment