res6: Array[(String, (String, String))] = Array((85000,(Harvey,Allen)), (85000,(Daniel,Prinz)), (85000,(Robert,Pascale)), (85000,(Donna,Brookes)), (85000,(James,Mackenzie)), (85000,(Robert,Chamberlain)), (85000,(Richard,Cunningham)), (85000,(Bailey,Sewell)), (85000,(Daniel,Marin)), (85001,(Frances,Mendelsohn)))
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
accountsByPCode.mapValues(fields => (fields(3), fields(4))).groupByKey().sortByKey()
.foreach(t => {
t._1.foreach(print)
t._2.foreach(println)
})
97234(Rebecca,Wright)
(Michael,Herron)
(Thomas,Telles)
(Rene,McCue)
(Arthur,Bruce)
(Herman,Willett)
(Jim,Stills)
(Terra,Delacruz)
(Jeffrey,Schulz)
(Ned,Goff)
97235(Barbara,Bledsoe)
(Marjorie,Libby)
(John,Stewart)
(Larry,Ramos)
(Herbert,Bacote)
(James,Moore)
(Gloria,Richmond)
(Anthony,Fuhr)
(Cornelia,Sadowski)
(Brad,Major)
.....