Versions Compared

Key

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

...

Code Block
java
java
def value = [1, 2, 3].every { it &lt;< 5 }
assert value

value = [1, 2, 3].every { item -> item &lt;< 3 }
assert ! value

any

returns true if any item match the closure predicate

...