toPersistentMap
Returns a persistent map containing all entries from this map.
If the receiver is already a persistent map, returns it as is. If the receiver is a persistent map builder, calls build on it and returns the result.
Entries of the returned map are iterated in the same order as in this map.