Skip to content

Instantly share code, notes, and snippets.

@notyy
Created October 28, 2011 09:51
Show Gist options
  • Save notyy/1321990 to your computer and use it in GitHub Desktop.
Save notyy/1321990 to your computer and use it in GitHub Desktop.
sand...
def assertArray[T](b1: Option[Array[T]], b2: Option[Array[T]]):Boolean = (b1,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