allDo

inline fun <T> allDo(vararg elements: T, act: (T) -> Unit)

Makes all elements of the nearest shared type T.

Usage example:

allDo(1, 2, 3){ println(it) } // prints: 1, 2, 3