#KT-1788 Fixed - added standard collection APIs to the various kinds of Array and removed the few old hand-crafted versions of these methods

This commit is contained in:
James Strachan
2012-04-17 14:05:32 +01:00
parent 5e8b0d39db
commit 7500808e11
28 changed files with 2885 additions and 13 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class CollectionTest {
test fun flatMap() {
val data = arrayList("", "foo", "bar", "x", "")
val characters = data.flatMap<String,Character>{ it.toCharList() }
val characters = data.flatMap<String,Char>{ it.toCharList() }
println("Got list of characters ${characters}")
assertEquals(7, characters.size())
val text = characters.makeString("")