Combine values of array by same two columns data

Certified Senior Developer

Hi all

I need one suggestion please let me know if anyone have an idea

Question: I had data in array ex:

a!map{

(id:1,idTwo:1,value:text),

(id:1,idTwo:2,value:exam),

(id:1,idTwo:1,value:yes)

},

I need to combine the value when id and idTwo are same

Expected Output:

{

(id:1,idTwo:1,value:textyes),

(id:1,idTwo:2,value:exam)

}

Thanks In Advance

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data