ãªããããã°ã©ãã³ã°è¨èªãªãã©ãã§ãä¸ç·ã ã¨æããã ãã©ãGroovyãããªãããããã®ããããã¨æã£ãã®ã§ã ã³ã¼ããæ¸ãã¨ã Dumpã使ã ãã¾ä½¿ãããå¤æ°ã«ã©ããªãã®ãå ¥ã£ã¦ããã®ãããããªããåããªã«ã§ã©ããªã¡ã½ããããã£ã¼ã«ããæã£ã¦ããã®ãã ãããªã¨ãã¯println hoge.dump() ãããã [k1:10, k2:30].each{ println it.dump() } ã¿ãããªã å®è¡ããã¨ãããªåºåã«ãªãã Assertã使ã dumpã¨ä¼¼ã¦ãããã©ãã¡ã½ãããã§ã¼ã³ã«ãªã£ã¦ããã¨ãã«ãã©ãã§ã©ããªå¤ãè¿ã£ã¦ãã¦ãããã確èªããã®ã«ããã assert [k1:10, k2:300, a1:100, a2:20].collectEntries {k,v -> [(v):k]}.groupBy {k,v -> v.startsWith "a"}[true] =
{{#tags}}- {{label}}
{{/tags}}