src/Support/Collection/NodeSet.php
/**
     * Prepends an item to the set if it doesn't already exist in the set.
     *
     * @param TValue $item
     */
Prepends an item to the set if it doesn't already exist in the set.
Prepends an item to the set if it doesn ' t already exist in the set .
public function prepend(Node $item): void
    {
        if ($this->cache->contains($item)) {
            return;
        }
        array_unshift($this->list, $item);
        $this->cache->attach($item);
        ++$this->length;
    }
public function prepend ( Node $ item ) : void { if ( $ this -> cache -> contains ( $ item ) ) { return ; } array_unshift ( $ this -> list , $ item ) ; $ this -> cache -> attach ( $ item ) ; ++ $ this -> length ; }
Prepends an item to the set if it doesn't already exist in the set.
Prepends an item to the set if it doesn ' t already exist in the set .