Skip to content

Instantly share code, notes, and snippets.

@yaroslav-ulanovych
Created August 1, 2013 14:16
Show Gist options
  • Save yaroslav-ulanovych/6131777 to your computer and use it in GitHub Desktop.
Save yaroslav-ulanovych/6131777 to your computer and use it in GitHub Desktop.
classOf[String].getDeclaredMethods.map(_.getName).toSet[String].map(x => (x, math.abs(x.hashCode) % 256)).groupBy(_._2).toList.sortBy(_._1).map(x => s"${x._1}(${x._2.size}}): ${x._2.map(_._1).mkString(", ")}").foreach(println)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment