Skip to content

Instantly share code, notes, and snippets.

@e0en
Created December 26, 2014 03:56
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 e0en/b834bfac2b3c7ee8ab46 to your computer and use it in GitHub Desktop.
Save e0en/b834bfac2b3c7ee8ab46 to your computer and use it in GitHub Desktop.
Convert a `Future[Seq]` into a `Future[Map]`
import com.twitter.util.Future
var seq = Future(Seq(1,2,3))
seq map { s => Map(s map {x => x -> x * 2}): _*) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment