Given the fallowing lists, I need to create a list mapping the items of the list:
def list1=[math,science]
def list2=[90,80]
create listofObj=[{label:"activity score",value:90},{label:"math",value=80}]
I've tried listofObj=[[tablelabels,tablevalues].transpose().collectEntries{[it[0],it[1]]}]
but it's producing a simple mapping.