Skip to content

Instantly share code, notes, and snippets.

@krishnanraman
Created January 15, 2013 01:22
Show Gist options
  • Save krishnanraman/4535171 to your computer and use it in GitHub Desktop.
Save krishnanraman/4535171 to your computer and use it in GitHub Desktop.
Min tuple
scala> empDB.minBy(e=>(-e.tenure,-e.age,e.salary))
res1: Employee = Employee(35,6,85079,emp7435)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment