Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleimplicit it in closures
def c1c = { it }
assert clc()  == null
assert clc(1) == 1

When using nested cosures (closures in closures) the meaning of "it" depends on the closure you are in.

...