Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path.

This commit is contained in:
Ilya Gorbunov
2015-03-26 22:49:07 +03:00
committed by Ilya Gorbunov
parent b10d869cd7
commit b3165ac771
5 changed files with 24 additions and 8 deletions
@@ -479,7 +479,7 @@ class CollectionTest {
}
test fun decomposeSplit() {
val (key, value) = "key = value".split("=").map { it.trim() }
val (key, value) = "key = value".splitBy("=").map { it.trim() }
assertEquals(key, "key")
assertEquals(value, "value")
}