updated half-closed range operators to the new syntax