How to convert a string to list in Groovy
Posted on 2009-04-13
I have a requirement to convert a "list-like" string into a real list in Groovy. For example, if I have a string as '[1,2,3,4,5]', how can I write a closure to convert it into a list type as [1,2,3,4,5]? If possible, could you please show me the real code?
I'm totally new to Groovy and learning it right now.