build

abstract fun build(): PersistentMap<K, V>(source)

Returns a persistent map with the same contents as this builder.

This method can be called multiple times.

If operations applied on this builder have caused no modifications:

  • on the first call it returns the same persistent map instance this builder was obtained from.

  • on subsequent calls it returns the same previously returned persistent map instance.