onEach

abstract fun onEach(action: (Map.Entry<K, V>) -> Unit): MapWrapper<K, V>

对每个元素执行给定的操作。

Return

this

Parameters

action

要对每个元素执行的操作。