Skip to content

Instantly share code, notes, and snippets.

@luizpericolo
Created July 7, 2016 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizpericolo/8c79af847c0403496fca8ed6ee8980a8 to your computer and use it in GitHub Desktop.
Save luizpericolo/8c79af847c0403496fca8ed6ee8980a8 to your computer and use it in GitHub Desktop.
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