src/collections/ArrayList.php
public function toMap(bool $mutable): ArrayMap
	{
		if ($mutable)
		{
			return new MutableMap($this->data);
		}
		else
		{
			return new ImmutableMap($this->data);
		}
	}
public function toMap(bool $mutable): ArrayMap
	{
		if ($mutable)
		{
			return new MutableMap($this->data);
		}
		else
		{
			return new ImmutableMap($this->data);
		}
	}
public function toMap ( bool $ mutable ) : ArrayMap { if ( $ mutable ) { return new MutableMap ( $ this -> data ) ; } else { return new ImmutableMap ( $ this -> data ) ; } }
Copy the data of this list into a map. Keys are preserved.

@param bool $mutable : if true, will return a MutableMap, otherwise an ImmutableMap
@return ArrayMap
Copy the data of this list into a map . Keys are preserved .