forEach

abstract fun forEach(action: (PT) -> Unit)

对数组的每个元素执行给定的操作.

参考 kotlin.collections.forEach

Parameters

action

要对每个元素执行的操作