public function fill($value, int $start, int $end)
    {
        $list = $this->list;

        foreach ($list as $index => $val) {
            $list[$index] = $index >= $start && $index <= $end ? $value : $val;
        }

        return new static($list);
    }
public function fill($value, int $start, int $end)
    {
        $list = $this->list;

        foreach ($list as $index => $val) {
            $list[$index] = $index >= $start && $index <= $end ? $value : $val;
        }

        return new static($list);
    }
public function fill ( $ value , int $ start , int $ end ) { $ list = $ this -> list ; foreach ( $ list as $ index => $ val ) { $ list [ $ index ] = $ index >= $ start && $ index <= $ end ? $ value : $ val ; } return new static ( $ list ) ; }
fill method.

@method fill

@param mixed $value
@param int   $start
@param int   $end

@return object Collection
fill method .