Rename sequence() extension to asSequence()

This commit is contained in:
Ilya Gorbunov
2015-04-21 02:05:14 +03:00
parent 60347e87aa
commit 899a01e8c2
10 changed files with 216 additions and 80 deletions
@@ -17,11 +17,11 @@ class MutableCollectionTest {
assertEquals(data, collection)
}
test fun fromStream() {
test fun fromSequence() {
val list = listOf("foo", "bar")
val collection = ArrayList<String>()
collection.addAll(list.sequence())
collection.addAll(list.asSequence())
assertEquals(list, collection)
}