I have an array of ‘tasks’ that I am getting back from a JSON response that I am iterating through, and doing some processing on each task. Here is some psudocode:
def tasks = grails.converters.JSON.parse(json response)
tasks.each() {task ->
//do some processing here
}
On the very last task in the list, I want to run an additional operation. I’m looking for a built in way to do this in grails/groovy. My searches have thus far yielded no results.
Another possible solution is