Skip to content

Instantly share code, notes, and snippets.

@olih
Created December 8, 2016 15:32
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 olih/69ecaed8db6fc1f616f25d39af3acbe8 to your computer and use it in GitHub Desktop.
Save olih/69ecaed8db6fc1f616f25d39af3acbe8 to your computer and use it in GitHub Desktop.
Scala cheatsheet

Scala

Convert Seq To Map

val map = seq.map(a => a.key -> a).toMap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment