Skip to content

Instantly share code, notes, and snippets.

@blt
Created Jun 6, 2011
Embed
What would you like to do?
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