Skip to content

Instantly share code, notes, and snippets.

@krishnanraman
Created February 1, 2013 23:31
Show Gist options
  • Select an option

  • Save krishnanraman/4694911 to your computer and use it in GitHub Desktop.

Select an option

Save krishnanraman/4694911 to your computer and use it in GitHub Desktop.
def f[T](a:Map[String,T],b:Map[String,T]) = {
val res= (a.keys++b.keys).toList.sorted.mkString(",")
if (res.length == 0) None else Some(res)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment