dev.forkhandles.tuples.from-list.kt Maven / Gradle / Ivy
// GENERATED CODE: DO NOT EDIT
package dev.forkhandles.tuples
fun List.toTuple2(): Tuple2 =
tuple(getOrNull(0), getOrNull(1))
fun List.toTuple3(): Tuple3 =
tuple(getOrNull(0), getOrNull(1), getOrNull(2))
fun List.toTuple4(): Tuple4 =
tuple(getOrNull(0), getOrNull(1), getOrNull(2), getOrNull(3))
fun List.toTuple5(): Tuple5 =
tuple(getOrNull(0), getOrNull(1), getOrNull(2), getOrNull(3), getOrNull(4))
fun List.toTuple6(): Tuple6 =
tuple(getOrNull(0), getOrNull(1), getOrNull(2), getOrNull(3), getOrNull(4), getOrNull(5))
fun List.toTuple7(): Tuple7 =
tuple(getOrNull(0), getOrNull(1), getOrNull(2), getOrNull(3), getOrNull(4), getOrNull(5), getOrNull(6))
fun List.toTuple8(): Tuple8 =
tuple(getOrNull(0), getOrNull(1), getOrNull(2), getOrNull(3), getOrNull(4), getOrNull(5), getOrNull(6), getOrNull(7))