I need code that will return list as follows:
def list = ["RR","SS"]
I came up with the following idea:
def Ash = ["RR","as","RTY"] def listA = [] for(i=0;i<Ash.size();i++) { listA << Ash[i].collect{ it as String } } AshNew = listA.flatten() println AshNew
But still, I want to know if we can do similar material in Groovy using a different method? Since I'm new to Groovy, I want to learn more about Groovier . Thanks for your reply!
Ant's source share