Advertisement
Guest User

Untitled

a guest
Oct 18th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def initSetgment[A](firstList: List[A], secondList: List[A]): Boolean = {
  2. (firstList, secondList) match {
  3. case (h1 :: t1, h2 :: t2) => h1 == h2 && initSetgment(t1, t2)
  4. case (Nil, _) => true
  5. case _ => false
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement