Skip to content

Instantly share code, notes, and snippets.

@codahale
Created October 27, 2009 16:20
Show Gist options
  • Select an option

  • Save codahale/219690 to your computer and use it in GitHub Desktop.

Select an option

Save codahale/219690 to your computer and use it in GitHub Desktop.
val encoded = BERT(1, 2, 3).toArray
BERT.parse(encoded) match {
case BERT(Tuple(x, y, z)) => println("Parsed a tuple: " + x + ", " + y + ", " + z)
case e => println("Unable to parse a tuple: " + e)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment