items = ['foo', 'bar', 'baz', 'qux'] println(items.any { it == "baz" } ? 'found' : 'not found') println(items.any { it == "fuzz" } ? 'found' : 'not found')