pairs

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

Returns all unique pairs of things in the list