def items = [] def walker = { child -> items << child items << walker }This doesn't work: walker is not found within the closure. Defining and assigning the variable does work:
def items = [] def walker walker = { child -> items << child items << walker }
0 comments:
Post a Comment