What is the purpose of “<<” (double less than) in groovy

后端 未结 2 1940
暗喜
暗喜 2020-12-06 05:54

I saw in some of the code which I am unable to understand the purpose of << like in the following sample code

def renderFiles(args) {
   def model = []         


        
2条回答
  •  广开言路
    2020-12-06 06:28

    In groovy << operator adds result of expression on the right side to the collection on the left side

提交回复
热议问题