kotlin.text.zip

zip

infix fun CharSequence.zip(
    other: CharSequence
): List<Pair<Char, Char>>

Returns a list of pairs built from characters of both char sequences with same indexes. List has length of shortest char sequence.

inline fun <V> CharSequence.zip(
    other: CharSequence, 
    transform: (a: Char, b: Char) -> V
): List<V>

Returns a list of values built from characters of both char sequences with same indexes using provided 登录查看完整内容