In a groovy tutorial, I encountered the following code:
class DateTagLib {
def thisYear = {
out << Calendar.getInstance().get(Calendar.YEAR)
}
}
I don't know what the <<
means, and I'm having no luck with google.
Edit: I now know that <<
sometimes is a bit shift. But what does it mean here?