Re: Dynamic assignment of list name in iterator statement?

2023-02-23 Thread Søren Berg Glasius
Hi Jim, It is possible: languages = ['english', 'french', 'spanish'] englishCharsList = ['a','b'] frenchCharsList = ['c','d'] spanishCharsList = ['e','f'] languages.each { lang -> this."${lang}CharsList".each { ch -> println "$lang -> $ch" } } Check it out here: https://gwc-expe

Re: Dynamic assignment of list name in iterator statement?

2023-02-23 Thread James McMahon
I see how this differs from my two initial attempts. Thank you very much Søren. This will work well. I'll visit this link and read more this morning. Jim On Thu, Feb 23, 2023 at 3:01 AM Søren Berg Glasius wrote: > Hi Jim, > > It is possible: > > languages = ['english', 'french', 'spanish'] > eng