Skip to content

Instantly share code, notes, and snippets.

Created Oct 28, 2011
What would you like to do?
scala style
def assertArray[T](b1: Array[T], b2: Array[T]):Boolean = (Option(b1),Option(b2)) match {
case (None,None) => true
case (Some(arr1),Some(arr2)) if(arr1.toList == arr2.toList) => true
case _ => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment