Prepends one or more iterators to the current one and sets a new iterator that iterates over all of them.

> ##### Caution
See {@see append()}

@param mixed $list A sequence of iterables to prepend.
@return $this
512371
function prepend ($list)
  {
    $a = new AppendIterator;
    foreach (iterator ($list) as $it)
      $a->append (iterator ($it));
    $a->append ($this->getIterator ());
    $this->setIterator ($a);
    return $this;
  }
3573
protected function prepareListProduct(array &$list)
    {
        foreach ($list as &$item) {
            $this->setItemPriceFormatted($item, $this->price);
            $this->setItemUrlEntity($item, $this->store, 'product');
        }
    }
1186110
public function prepend(string $string): self
    {
        return new self($string.(string) $this, $this->encoding);
    }
993320
public static function build($list)
    {
        if (is_string($list)) {
            return $list;
        }

        if ($list instanceof self) {
            $list = $list->tokens;
        }

        $ret = '';
        if (is_array($list)) {
            foreach ($list as $tok) {
                $ret .= $tok->token;
            }
        }

        return $ret;
    }
734920
public function setList($list)
    {
        $this->list = $list;
        $this->failover = $this->list;
        return $this;
    }
1336189
public function prepend()
    {
        $this->importNodes(\func_get_args(), function ($node, $imported_node) {
            $node->insertBefore($imported_node, $node->childNodes->item(0));
        });

        return $this;
    }
699711
protected static function expandClosures( $list ) {
		return array_map( function ( $value ) {
			if ( is_object( $value ) && $value instanceof Closure ) {
				// If $value is a Closure, call it.
				return $value();
			} else {
				return $value;
			}
		}, $list );
	}
1203601
public function prependImageList($list) {
		$currentList = $this->getImageList();
		$list = array_merge($list, $currentList);
		return $this->setImageList($list);
	}
586341
public static function iteratorReverse($iterable)
    {
        for (end($iterable); ($key = key($iterable)) !== null; prev($iterable)) {
            yield $key => current($iterable);
        }
    }
133030
protected function prepareListOrder(array &$list)
    {
        foreach ($list as &$item) {
            $this->setItemOrderNew($item, $this->order_history);
            $this->setItemTotalFormatted($item, $this->price);
        }
    }
1036513
public function fromArray( array $list )
	{
		$unknown = array();
		$list = parent::fromArray( $list );

		foreach( $list as $key => $value )
		{
			switch( $key )
			{
				case $this->_prefix . 'refid': $this->setRefId( $value ); break;
				case $this->_prefix . 'position': $this->setPosition( $value ); break;
				default: $unknown[$key] = $value;
			}
		}

		return $unknown;
	}
1207237
public function prepend($value, $key = null)
    {
        if (is_null($key)) {
            array_unshift($this->items, $value);
        }
        else {
            $this->items = [$key => $value] + $this->items;
        }

        return $this;
    }
1176325
public function prepend($key, $value)
    {
        $array = $this->get($key);

        array_unshift($array, $value);

        $this->set($key, $array);
    }
493672
public function addList(PHPRtfLite_List $list)
    {
        $this->_items[] = $list;
        $list->_textIndent += $this->_textIndent;
        return $this;
    }
482666
public function insertScripts($list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        $this->scripts = $list;
        return $this;
    }
313133
public function prependSelect($fields = [])
    {
        if (!is_array($fields)) {
            $fields = [$fields];
        }

        $collection = collect($this->select);
        foreach ($fields as $key => $field) {
            $collection->prepend($field, is_string($key) ? $key : null);
        }

        $this->select = $collection->all();

        return $this;
    }
419401
public function except(array $list)
    {
        foreach ($list as $field)
        {
            if(property_exists($this->obj,$field))
                unset($this->obj->$field);
        }

        return $this;
    }