public function splice($offset, $length = null, $replacement = [])
    {
        if (func_num_args() == 1) {
            return new DataStore(
                array_splice($this->rows, $offset), 
                $this->metaData
            );
        }

        return new DataStore(
            array_splice($this->rows, $offset, $length, $replacement),
            $this->metaData
        );
    }
public function splice($offset, $length = null, $replacement = [])
    {
        if (func_num_args() == 1) {
            return new DataStore(
                array_splice($this->rows, $offset), 
                $this->metaData
            );
        }

        return new DataStore(
            array_splice($this->rows, $offset, $length, $replacement),
            $this->metaData
        );
    }
public function splice ( $ offset , $ length = null , $ replacement = [ ] ) { if ( func_num_args ( ) == 1 ) { return new DataStore ( array_splice ( $ this -> rows , $ offset ) , $ this -> metaData ) ; } return new DataStore ( array_splice ( $ this -> rows , $ offset , $ length , $ replacement ) , $ this -> metaData ) ; }
Splice the data and replace

@param integer $offset      Starting row to get
@param integer $length      How many rows to get
@param array   $replacement Optional! Replaced rows

@return DataStore New dataStore containing results.
Splice the data and replace