reversed()

reversed()扩展函数被定义在每一个*Progression类中,并且这个方法返回一个反向序列。

fun IntProgression.reversed(): IntProgression {
    return IntProgression.fromClosedRange(last, first, -step)
}

results matching ""

    No results matching ""