StdLib deprecations cleanup: length, size, indices and other collection operations.

This commit is contained in:
Ilya Gorbunov
2015-06-25 18:36:52 +03:00
parent 2c31a1a345
commit f3a19ebe11
11 changed files with 42 additions and 42 deletions
@@ -236,7 +236,7 @@ fun filtering(): List<GenericFunction> {
returns(Strings) { "String" }
body(Strings) {
"""
for (index in 0..length - 1)
for (index in 0..length() - 1)
if (!predicate(get(index))) {
return substring(0, index)
}
@@ -357,7 +357,7 @@ fun filtering(): List<GenericFunction> {
doc(Strings) { "Appends all characters matching the given [predicate] to the given [destination]." }
body(Strings) {
"""
for (index in 0..length - 1) {
for (index in 0..length() - 1) {
val element = get(index)
if (predicate(element)) destination.append(element)
}