Created
July 7, 2016 18:53
-
-
Save luizpericolo/8c79af847c0403496fca8ed6ee8980a8 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 doSth() = { | |
val futureResponse = goToES() // tipo aqui é Future[Map[Int, Int]] | |
val filters = futureResponse.map { response => | |
response.keys.map { key => | |
(key, key.upper(), key.lower()) | |
} | |
} | |
// O tipo de filters é Future[List(String, String, String)] | |
// Quero que o tipo seja List(String, String, String) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment