public function toList(bool $mutable): ArrayList
	{
		if ($mutable)
		{
			return new MutableList(array_values($this->data));
		}
		else
		{
			return new ImmutableList(array_values($this->data));
		}
	}
public function toList(bool $mutable): ArrayList
	{
		if ($mutable)
		{
			return new MutableList(array_values($this->data));
		}
		else
		{
			return new ImmutableList(array_values($this->data));
		}
	}
public function toList ( bool $ mutable ) : ArrayList { if ( $ mutable ) { return new MutableList ( array_values ( $ this -> data ) ) ; } else { return new ImmutableList ( array_values ( $ this -> data ) ) ; } }
Copy the values of this collection into a list. Keys are not preserved.

@param bool $mutable : if true, will return a MutableList, otherwise an ImmutableList
@return ArrayList
Copy the values of this collection into a list . Keys are not preserved .