WASM: Implement string.compareTo and string.subSequence

This commit is contained in:
Igor Laevsky
2021-07-30 15:12:45 +03:00
committed by TeamCityServer
parent 0eba74a9d2
commit 468fe4196d
2 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -913,7 +913,7 @@ public actual fun abs(n: Int): Int = TODO("Wasm stdlib: Math")
* Returns the smaller of two values.
*/
@SinceKotlin("1.2")
public actual fun min(a: Int, b: Int): Int = TODO("Wasm stdlib: Math")
public actual fun min(a: Int, b: Int): Int = if (a < b) a else b
/**
* Returns the greater of two values.