better docs

This commit is contained in:
Sergey Chernov 2025-06-13 18:02:34 +04:00
parent cfb2f7f128
commit 89427de5cd
2 changed files with 7 additions and 2 deletions

View File

@ -96,9 +96,14 @@ arguments list in almost arbitrary ways. For example:
// Swap first and last arguments in the call
fun swap_args(first, others..., last, f) { f(last, ...others, first) }
fun glue(args...) {
var result = ""
for( a in args ) result += a
}
assertEquals(
"321",
swap_args( 1, 2, 3 ) { a, b, c -> "" + a + b + c }
swap_args( 1, 2, 3, glue)
)
>>> void

View File

@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
group = "net.sergeych"
version = "0.6.0-SNAPSHOT"
version = "0.6.1-SNAPSHOT"
buildscript {
repositories {