What does the inject method in Groovy actually do? I googled it, and have not found the exact answer. Can anyone specify its use with a simple example?

Edit
Report