withMap

open override fun withMap(map: Map<String, KpaElement>): KpaStruct(source)

Builds a new SimpleStruct wrapping a persistent copy of map.

Return

A new SimpleStruct.

Parameters

map

The key-to-value entries the returned struct should expose.