operator inspired in groovy