Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mixCollections[T](a: List[T], b: List[T]) =
- (a, b).zipped.flatMap((x, y) => x :: y :: Nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement