forEach

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

对此数组的每个元素执行给定的 action。

参考 kotlin.collections.forEach

Parameters

action

要执行的操作