Last active
March 10, 2019 12:23
-
-
Save ezhov-da/a44dc52aa50b8702ef0fdf96eb7f7e33 to your computer and use it in GitHub Desktop.
groovy из строки в код
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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