Skip to content

Commit b1a9ae8

Browse files
committed
docs(Readme): update version to v0.1.1-SNAPSHOT
1 parent e8a39ab commit b1a9ae8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ jsIntArray.forEach(object : UnTypedIteratorCallback<Unit>{
176176
println("jsIntArray[$index] = $currentValue")
177177
}
178178
})
179+
// 3、使用lambda函数
180+
jsIntArray.forEach { index, value->
181+
println("jsIntArray[$index] = $value")
182+
}
183+
179184
// 其他迭代相关的函数,如map()、filter()、every()等以此类推。又比如,reduce()、reduceRight()的基本使用如下(简单的数值累加的例子):
180185
jsIntArray.reduce(object : TypedIteratorCallback<Int?, Int>{
181186
override fun call(currentValue: Int?, index: Int, total: Int?, arr: Any?): Int {

0 commit comments

Comments
 (0)