title: Groovy Syntax Confusion
body: <p>I'm new to Groovy/Gradle and I'm currently learning the syntax, but I'm a bit confused by its syntax because it seems that same thing can be achieved by a lot of different ways. Does anyone know what's the meaning of the following groovy code:</p>
  <pre><code>something(x, y) { 
      // some code here 
  }
  </code></pre>
  <p>It is definitely not a method declaration because it doesn't have the <code>def</code> keyword. It also doesn't look like an invocation of the <code>something</code> method, because that wouldn't explain the curly braces. What exactly does this code do?</p>