src/Support/Collection/StringSet.php
/**
     * Appends an item to the set if it doesn't already exsist in the set.
     */
Appends an item to the set if it doesn't already exsist in the set.
Appends an item to the set if it doesn ' t already exsist in the set .
public function append(string $item): void
    {
        if (isset($this->cache[$item])) {
            return;
        }
        $this->list[] = $item;
        $this->cache[$item] = true;
        ++$this->length;
    }
public function append ( string $ item ) : void { if ( isset ( $ this -> cache [ $ item ] ) ) { return ; } $ this -> list [ ] = $ item ; $ this -> cache [ $ item ] = true ; ++ $ this -> length ; }
Appends an item to the set if it doesn't already exsist in the set.
Appends an item to the set if it doesn ' t already exsist in the set .