scala> //PS:125 scala> //psn > a40 > a70 scala> val sub = Seq("physics", "math", "english") sub: Seq[String] = List(physics, math, english) scala> val mark = Seq(80, 90, 75) mark: Seq[Int] = List(80, 90, 75) scala> val subNmark = sub zip mark subNmark: Seq[(String, Int)] = List((physics,80), (math,90), (english,75))
No comments:
Post a Comment