Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case class Gr (x:Int,y:Int, z:Int)
- val x = List(1,2,4,2,5)
- val y = Array(1,2,7,4,5)
- val z = Seq(1,2,4,8,5)
- (x,y,z).zipped.toList.map(a => Gr(a._1,a._2,a._3))
- (x,y,z).zipped.map(Gr:(Int,Int,Int) => Gr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement