RemoveIterator
@param XPath2NodeIterator $iter
@param int $index
@return IEnumerable
351369
private static function RemoveIterator( $iter, $index )
	{
		$pos = 1;

		/**
		 * @var XPathItem $item
		 */
		foreach ( $iter as $item )
		{
		    if ( $index != $pos )
			   yield $item;
		    $pos++;
		}
	}
880393
private static function IndexOfIterator( $iter, $value, $collation = null )
	{
		$pos = 1;
		if ( $value instanceof UntypedAtomic || $value instanceof AnyUriValue )
		{
			$value = $value . "";
		}

		/**
		 * @var XPathItem $item
		 */
		foreach( $iter as $item )
		{
		    $res;
		    $curr = $item instanceof XPathNavigator
		    	? $item->GetTypedValue()
		    	: $item;

		    if ( $curr instanceof UntypedAtomic || $curr instanceof AnyUriValue )
		    {
		    	$curr = (string)$curr . "";
		    }

		    // BMS 2017-09-13 This test is needed by one of the XFI tests
		    // but don't want it to raise an exception if there is no match
		    if ( CoreFuncs::OperatorEq( $curr, $value, false ) instanceof CoreFuncs::$True )
		    // This test is needed by fn-indexof-mix-args-021 in SeqIndexOfFunc.xml of
		    // /MinimalConformance/Functions/SeqFunc/GeneralSeqFunc
		    // if ( ValueProxy::EqValues( $curr, $value, $res ) && $res )
		    {
		    	yield XPath2Item::fromValue( $pos );
		    }

		    $pos++;
		}
	}
1002518
public Object remove(int index) {

        //Check that the index is less than size because the getInternal
        //method is being called with index - 1 and its checks will therefore
        //not be useful in this case.
        if (index >= size()) {
            throw new IndexOutOfBoundsException("Index out of bounds: "
                                                + index + " >= " + size());
        }

        //Get the node that is previous to the node being removed
        Node previousToRemove;

        if (index == 0) {
            previousToRemove = first;
        } else {
            previousToRemove = getInternal(index - 1);
        }

        //previousToRemove.next will never be null because of the check above
        //that index < size.
        Node toRemove = previousToRemove.next;

        previousToRemove.next = toRemove.next;

        elementCount--;

        //If they removed at the last valid index, then a the last element
        //was removed, therfore update the last pointer
        if (last == toRemove) {
            last = previousToRemove;
        }

        return toRemove.data;
    }
224489
public function remove($index) {
        $e = $this->elements[$index];
        unset($this->elements[$index]);
        $this->clean();
        $this->fire(new ListDeleteEvent($e, $index));
        return $e;
    }
762609
public function remove_at( $index ) {
		$this->validate_index( $index );

		$elements = $this->elements;

		return $this->new_from_trusted(
			array_merge(
				array_slice( $elements, 0, $index ),
				array_slice( $elements, $index + 1, count( $elements ) )
			)
		);
	}
1306309
public static <E> Iterator<E> unmodifiableIterator(final Iterator<E> it) {
	return new Iterator<E>() {
	    public boolean hasNext() { return it.hasNext(); }
	    public E       next()    { return it.next(); }
	    public void    remove()  { throw new UnsupportedOperationException(); }
	};
    }
188869
public Iterator<E> iterator() {

        return new Iterator<E>() {

            public boolean hasNext() {
                return enumeration.hasMoreElements();
            }

            public E next() {
                return enumeration.nextElement();
            }

            public void remove() {
                throw new UnsupportedOperationException("IterableEnumeration does not support remove");
            }
        };
    }
540704
public function removePageLink($index = null) {
        if ($index) {
            $return = $this->links->offsetGet($index);
            $this->links->offsetUnset($index);
            return $return;
        } else {
            return $this->links->pop();
        }
    }
652678
public function remove($index): Utility
    {
        if ($this->exists($index)) {
            $newBag = $this->toArray();
            unset($newBag[$index]);
            return new self($newBag);
        }

        return $this;
    }
1181752
public static function InsertBefore( $iter, $index, $iter2 )
	{
		return new NodeIterator( function() use( $iter, $index, $iter2 ) { return ExtFuncs::InsertIterator( $iter->CloneInstance(), $index, $iter2->CloneInstance() ); } );
	}
1225409
public static function IndexOfSequenceWithCollation( $context, $iter, $value, $collation )
	{
		if ( ! is_null( $collation ) && $collation != XmlReservedNs::collationCodepoint )
		{
			if ( ! setlocale( LC_COLLATE, $collation ) )
			{
				throw XPath2Exception::withErrorCodeAndParam( "FOCH0002", Resources::FOCH0002, $collation );
			}
		}

		return new NodeIterator( function() use( $iter, $value, $collation ) { return ExtFuncs::IndexOfIterator( $iter, $value, $collation ); } );
	}
1183490
public function remove($element) {
		$index = array_search($element, $this->collection, true);
		if ($index !== null) {
			unset($this->collection[$index]);
		}

		return $this;
	}
303122
public static <T> Iterator<T> singleElementIterator(final T element) {
    return new Iterator<T>() {
      private boolean mHasNext = true;

      @Override
      public boolean hasNext() {
        return mHasNext;
      }

      @Override
      public T next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        mHasNext = false;
        return element;
      }

      @Override
      public void remove() {
        throw new UnsupportedOperationException("remove is not supported.");
      }
    };
  }
321047
public function remove($key): CollectionInterface
    {
        foreach ($this->indexes as $index) {
            $index->remove($key);
        }

        return parent::remove($key);
    }
931706
def remove(self, index):
        '''
        
        '''
        raise NotImplementedError
        if hasattr(index, '__iter__'):
            ind = set(index)
        else:
            ind = [index]

        # Rebuild relationships, excluding the provided indices
        self._relationships = [r for i, r in enumerate(self._relationships) if i not in ind]
1355410
public function removeAllIndexes($collection = '')
		{
			if (empty($collection)) {
				throw new Exception("No Mongo collection specified to remove all indexes from");
			}

			$this->db->{$collection}->deleteIndexes();
			$this->_clear();

			return $this;
		}
589663
public E remove(int index) {
        if (index >= mSize)
            throw new IndexOutOfBoundsException("Index: " + index + ", Size: "
                    + mSize);

        E ret = mElements.remove(index < 0 ? index + mSize : index);
        mSize--;
        return ret;
    }