Skip to content

Instantly share code, notes, and snippets.

@blt
Created June 6, 2011 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blt/1010413 to your computer and use it in GitHub Desktop.
Save blt/1010413 to your computer and use it in GitHub Desktop.
def orthoganol[S,T](l:Manifest[S], r:Manifest[T]):Boolean = {
try {
l.erasure.asInstanceOf[T]
true
} catch {
case e:java.lang.ClassCastException => false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment