Skip to content

Instantly share code, notes, and snippets.

@nicerobot
Created July 18, 2012 04:46
Show Gist options
  • Save nicerobot/3134234 to your computer and use it in GitHub Desktop.
Save nicerobot/3134234 to your computer and use it in GitHub Desktop.
There has to be a simpler solution!
import scala.collection.JavaConversions.propertiesAsScalaMapimport
(scala.collection.SortedMap[String,String]() ++ System.getProperties()) map(s=>printf("%%%ds | %%s\n".format(System.getProperties().toMap.keySet.foldLeft(0)((i,s) => i max s.length)),s._1,s._2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment