Created
July 20, 2015 21:45
-
-
Save dhoss/e1af3adb1dd2e6643afb to your computer and use it in GitHub Desktop.
flatmap
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
dbf.flatMap { case Nil => api future; case stuff => Future.succes(stuff) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment