interleaved

fun <T> List<T>.interleaved(other: List<T>): List<T>

Returns a list alternating elements of this list and other, starting with this list.

Once the shorter list is exhausted, the remaining elements of the longer list are appended.