Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def initSetgment[A](firstList: List[A], secondList: List[A]): Boolean = {
- (firstList, secondList) match {
- case (h1 :: t1, h2 :: t2) => h1 == h2 && initSetgment(t1, t2)
- case (Nil, _) => true
- case _ => false
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement