Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 10, 2019 12:23
Show Gist options
  • Save ezhov-da/a44dc52aa50b8702ef0fdf96eb7f7e33 to your computer and use it in GitHub Desktop.
Save ezhov-da/a44dc52aa50b8702ef0fdf96eb7f7e33 to your computer and use it in GitHub Desktop.
groovy из строки в код
http://stackoverflow.com/questions/15125003/convert-string-variable-to-a-list-groovy
http://docs.groovy-lang.org/latest/html/api/groovy/util/Eval.html
[code:]groovy[:code]
def ids = "[10, 1, 9]"
def l = Eval.me(ids)
[/code]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment