Last active
March 6, 2018 22:59
-
-
Save kolov/8ae12c73e11c1657e15eeda9e69507c9 to your computer and use it in GitHub Desktop.
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 getAllDatesCats(products: List[String]) = { | |
val futureAllDates = Future.sequence(products.map(p ⇒ getDates(p))) | |
futureAllDates.map(l ⇒ l.combineAll.toOption) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment