triples

fun <T> Iterable<T>.triples(): List<Triple<T, T, T>>

Returns a partitioned list of triples


inline fun <T, R> Iterable<T>.triples(transform: (T, T, T) -> R): List<R>

Returns a partitioned list of triples transformed with the given transformer