firstThenRest

fun <T> List<T>.firstThenRest(): Pair<T, List<T>>

Returns a Pair from a List object which the first item is from the #first() function, and the second pair is the remaining arguments.