255 where $this is equal to $other.

@param mixed $other   The right-hand side of the operator.
@param array $options An array of options to pass to the operation.

@throws Exception

@return Image A new image.
977101
public function equal($other, array $options = []): Image
    {
        return $this->callEnum($other, 'relational', OperationRelational::EQUAL, $options);
    }
902648
public function lshift($other, array $options = []): Image
    {
        return $this->callEnum($other, 'boolean', OperationBoolean::LSHIFT, $options);
    }
62620
public function equals(Buffer $other)
    {
        return ($other->getSize() === $this->getSize()
             && $other->getBinary() === $this->getBinary());
    }
1327985
public function append(self $other) : self
    {
        $path = clone $this;
        $path->operations = array_merge($this->operations, $other->operations);
        return $path;
    }
179954
public function equals( $other )
	{
		try
		{
			return $this->qnameValueHash == $other->qnameValueHash ||
				( $this->localName == $other->localName && $this->namespaceURI == $other->namespaceURI );
		}
		catch( \Exception $ex )
		{
			return false;
		}
	}
306232
public function equals($other)
    {
        if (!($other instanceof self)) {
            $other = new BigInt($other);
        }
        return ($this->compare($other) === 0);
    }
182786
public function notEq($other, array $options = []): Image
    {
        return $this->callEnum($other, 'relational', OperationRelational::NOTEQ, $options);
    }
736807
public function and($column, $value = '', $operator = Criterion::EQUALS, $variable = null, $additional = null, $special = null): self
        {
            if ($this->mode == query::MODE_OR) {
                throw new Exception('Cannot combine two selection types (AND/OR) in the same Criteria. Use multiple sub-criteria instead');
            }

            $this->where($column, $value, $operator, $variable, $additional, $special);

            $this->mode = query::MODE_AND;

            return $this;
        }
638280
public function add(Bigint $other): Bigint
    {
        $result = clone $this;
        $overflow = false;
        for ($i = 0; $i < 8; $i++) {
            $result->bytes[$i] += $other->bytes[$i];
            if ($overflow) {
                $result->bytes[$i]++;
                $overflow = false;
            }
            if ($result->bytes[$i] & 0x100) {
                $overflow = true;
                $result->bytes[$i] &= 0xFF;
            }
        }
        if ($overflow) {
            throw new OverflowException;
        }
        return $result;
    }
374836
public function appendBitArray(self $other) : void
    {
        $otherSize = $other->getSize();
        $this->ensureCapacity($this->size + $other->getSize());

        for ($i = 0; $i < $otherSize; ++$i) {
            $this->appendBit($other->get($i));
        }
    }
1140640
public function moreEq($other, array $options = []): Image
    {
        return $this->callEnum($other, 'relational', OperationRelational::MOREEQ, $options);
    }
598348
public function zipLeft($other)
    {
        if (count($other) !== count($this)) {
            throw new \InvalidArgumentException(
                'Both left and right must have same size.'
            );
        }

        if (is_array($other)) {
            $aKeys = array_keys($this->data);
            $other = new Dict($other);

            return new Dict(
                array_map(
                    function ($key) use ($other) {
                        $leftValue = $this->getOrElse($key);
                        $rightValue = $other->getOrElse($key);

                        return new Tuple([$rightValue, $leftValue]);
                    },
                    $aKeys
                )
            );
        }

        if ($other instanceof Dict) {
            return $other->zipLeft($this->data);
        }

        throw new \InvalidArgumentException('`$other` must be `Dict` or `array`');
    }
1135124
public function logicalXor(self $other){
		
		$l = \max(array($this->count(), $other->count()));
		$new = new static();
		
		for($i = 0; $i < $l; ++$i){

			if(isset($this[$i], $other[$i])){
				$new[$i] = (bool)($this[$i] ^ $other[$i]);
			}
			else{
				$new[$i] = false;
			}
			
		}
		
		return $new;
		
	}
5146
public function addSegment($segment, $other = null){
		if(!$segment instanceof Segment){
			$segment = new Segment($segment);
		}
		if($this->getIndexOf($segment->getName())) throw new \Exception('Section with this name already exists');
		if($other){
			if(($index = $this->getIndexOf($other))===false) throw new \Exception('Segment not found');
			array_splice($this->segments, $index, 0, [$segment]);
		}else{
			$this->segments[] = $segment;
		}
		return $segment;
	}
994437
public function applyWhenEmpty(callable $other): self
    {
        if (!$this->isEmpty($this->value)) {
            return $this;
        }

        return self::of($other());
    }
265429
public function equals($other = null): bool
    {
        if (is_null($other)) {
            return false;
        } else {
            return
                $other instanceof static &&
                $other->getChoiceString() === $this->getChoiceString();
        }
    }
408455
function equals( $other ) {
		if( ! ( $other instanceof Address ) ) {
			return false;
		}
		return $this === $other
			|| $this->asString() === $other->asString();
	}