Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは可能ですか?もしそうなら、どのように?
item.foo = "moo" def x = "foo" item.[x] = "moo"
質問があるかわかりませんが...
def item = { def foo } def x = "foo" item[x] = "moo" assert item[x] == "moo" assert item.foo == "moo"