Package de.justjanne.libquassel.protocol.util.collections

Functions

Link copied to clipboard
fun <T> List<T>.insert(value: T, pos: Int = size): List<T>
Link copied to clipboard
fun <T> List<T>.move(value: T, pos: Int = size): List<T>
Link copied to clipboard
fun <T> Iterable<T>.pairs(): List<Pair<T, T>>

Returns a partitioned list of pairs

inline fun <T, R> Iterable<T>.pairs(crossinline transform: (T, T) -> R): List<R>

Returns a partitioned list of pairs transformed with the given transformer

Link copied to clipboard
fun <T> List<T>.remove(value: T): List<T>
Link copied to clipboard
fun <T> List<T>.removeAt(index: Int): List<T>
Link copied to clipboard
fun List<QVariantMap>.transpose(): QVariantMap
Link copied to clipboard
fun <T> Iterable<T>.triples(): List<Triple<T, T, T>>

Returns a partitioned list of triples

inline fun <T, R> Iterable<T>.triples(transform: (T, T, T) -> R): List<R>

Returns a partitioned list of triples transformed with the given transformer

Properties

Link copied to clipboard
val <K, V> Map<K, V>.indices: IntRange