Aggregate duplicate records by maintaining the order and also include duplicate records
问题 I am trying to solve an interesting problem, it's easy to just do a groupBy for aggregation like sum, count etc. But this problem is slightly different. Let me explain: This is my list of tuples: val repeatSmokers: List[(String, String, String, String, String, String)] = List( ("ID76182", "sachin", "kita MR.", "56308", "1990", "300"), ("ID76182", "KOUN", "Jana MR.", "56714", "1990", "100"), ("ID76182", "GANGS", "SKILL", "27539", "1990", "255"), ("ID76182", "GANGS", "SKILL", "27539", "1990",