Groovy web console

subscribe to the feed Subscribe
to this
site

example

Published 1 month ago by lootbox
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class cls {

    def fn() {
        def a = [
            'aa',
            'bb',
            'cc',
        ]
        
        
        
        print a.findAll{ 'aa' != it && 'cc' != it }
    }
}

c= new cls()
c.fn()