src/Datastructure/Lists/ArrayLists/ArrayList.php
public function addAll(ArrayList $arrayList): bool {
        $added = false;
        foreach ($arrayList as $value) {
            $added |= $this->add($value);
        }
        return $added;
    }
public function addAll(ArrayList $arrayList): bool {
        $added = false;
        foreach ($arrayList as $value) {
            $added |= $this->add($value);
        }
        return $added;
    }
public function addAll ( ArrayList $ arrayList ) : bool { $ added = false ; foreach ( $ arrayList as $ value ) { $ added |= $ this -> add ( $ value ) ; } return $ added ; }
adds all elements of an array list to the list

@param ArrayList $arrayList
@return bool
adds all elements of an array list to the list