Removes a row and reindexes the collection

@param string|int $index The position in the collection to cut out

@return Eden\Collection\Index
515094
public function cut($index = self::LAST)
    {
        //Argument 1 must be a string or integer
        Argument::i()->test(1, 'string', 'int');

        //if index is first
        if ($index == self::FIRST) {
            //we really mean 0
            $index = 0;
        //if index is last
        } else if ($index == self::LAST) {
            //we realy mean the last index number
            $index = count($this->list) -1;
        }

        //if this row is found
        if (isset($this->list[$index])) {
            //unset it
            unset($this->list[$index]);
        }

        //reindex the list
        $this->list = array_values($this->list);

        return $this;
    }
260639
public function removeFromIndex($index)
    {
        $index = intval($index);
        if ($this->length() > $index) {
            for ($i = $index + 1; $i < $this->length(); ++$i) {
                if ($this->offsetExists($i)) {
                    $this->offsetUnset($i);
                }
            }
        }
    }
540704
public function removePageLink($index = null) {
        if ($index) {
            $return = $this->links->offsetGet($index);
            $this->links->offsetUnset($index);
            return $return;
        } else {
            return $this->links->pop();
        }
    }
1312808
public function setIndex($index): self
    {
        if ($index instanceof Index) {
            $index = $index->getName();
        }

        $this->_index = (string) $index;

        return $this;
    }
1074562
public function removeIndex($index)
    {
        if ($this->hasIndex($index)) {
            unset($this->_items[$index]);
            $this->_iterator = null;
            return true;
        }
        return false;
    }
544126
public function getRow($index)
    {
        if (!isset($this->rows[$index])) {
            throw new DcGeneralInvalidArgumentException('Row ' . $index . ' does not exist.');
        }

        return $this->rows[$index];
    }
356571
public function remove_all_indexes($collection = '')
	{
		if (empty($collection))
		{
			throw new \Mongo_DbException("No Mongo collection specified to remove all indexes from");
		}
		$this->db->{$collection}->deleteIndexes();
		$this->_clear();
		return $this;
	}
627542
public function drop($index)
    {
        $indexes = func_get_args();

        foreach ($indexes as $index) {
            $index = is_array($index) ? $this->prepareIndex($index) : $index;

            $this->collection->deleteIndex($index);
        }

        return $this;
    }
1305043
public static function Remove( array $array, int $index ) : array
   {

      if ( $index < 0 || $index >= \count( $array ) )
      {
         return $array;
      }

      if ( $index == 0 )
      {
         return \array_slice( $array, 1 );
      }

      if ( $index + 1 == \count( $array ) )
      {
         return \array_slice( $array, 0, -1 );
      }

      $neu = \array_slice( $array, 0, $index );

      return \array_merge( $neu, \array_slice( $array, $index + 1 ) );

   }
1124654
public function eq(int $index): ?\DOMNode {
        if ($index < 0) {
            $index = $this->collection()->count() + $index;
        }

        return $this->collection()->offsetGet($index);
    }
1059603
public function removeRange($index, $count){
		
		if($this->_ReadOnly){
			throw new ReadOnlyException(\get_called_class() . ' is read only');
		}
		
		if(!$this->offsetExists($index)){
			throw new \OutOfRangeException('$index is invalid');
		}
		
		\array_splice($this->_Arr, $index, $count);
		
		return $this;
		
	}
57558
public function getRow($index)
    {
        return isset($this->rows[$index]) ? $this->rows[$index] : null;
    }
751284
public function removeAt($index) {
		
		if($this->_ReadOnly){
			throw new \RuntimeException(\get_called_class() . ' is read only');
		}
		
		if(!$this->offsetExists($index)){
			throw new \OutOfRangeException('$index is invalid');
		}
		
		\array_splice($this->_Arr, $index, 1);
		
		return $this;
		
	}
1250387
public function remove(string $index): bool
    {
        $this->withIndexFilter($index);

        $deleted = $this->createDeleteBuilder()->execute();

        $this->clearFetchParameters();

        return (int)$deleted > 0;
    }
97552
public function remove($index)
	{
		$value = $this->opt($index);
		unset($this->map[$index]);
		
		return $value;
	}
1259039
public function refresh($index)
    {
        $request = $this->createRequestInstance(self::INDEX_REFRESH, $index, null);

        return $this->client->send($request);
    }
224489
public function remove($index) {
        $e = $this->elements[$index];
        unset($this->elements[$index]);
        $this->clean();
        $this->fire(new ListDeleteEvent($e, $index));
        return $e;
    }