zipWithNextCircular

inline fun <T, R> List<T>.zipWithNextCircular(transform: (a: T, b: T) -> R): List<R>(source)

The same as zipWithNext, but includes link between last and first element