You are currently viewing Is there any extension function in List which can do this

Is there any extension function in List which can do this

Assume I have a list of 4 objects with id, name and type.
Eg Input :
Obj(1,”Name 1″,”Type 1″)
Obj(2,”Name 2″,”Type 1″)
Obj(1,”Name 1″,”Type 2″)
Obj(1,”Name 1″,”Type 3″)

Resulted List
Obj2(1,”Name 1,{“Type 1″,”Type 2″,”Type 3”}
Obj2(2,”Name 2″,{“Type 1”})
Is there any solutions in list extension functions?

submitted by /u/nabeel527
[link] [comments]