Generation

generate functionSat, 12 Nov 2022

Zip the elements of n lists

def zip[A](la: List[A], lb: List[A]): List[(A, A)] = la.zip(lb) zip(List(1, 2, 3), List(4, 5, 6))

Want to kickstart your project?Use the new AI Studio to create your code