kotlin源码分析-分析和使用Collections集合

集合api提供了不少有用的方法,基本包含了java集合类中的全部方法,提供了更多的扩展。咱们来看看有什么特别的方法,以及怎么使用,深刻讲解闭包的封装和使用 /** * Returns `true` if all elements match the given [predicate]. */ public inline fun <T> Iterable<T>.all(predicate: (T)
相关文章
相关标签/搜索