generate for/in over java.lang.Iterable

This commit is contained in:
Dmitry Jemerov
2011-04-28 18:24:16 +02:00
parent da6b4a9595
commit 89d7adbf73
3 changed files with 71 additions and 6 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
import java.util.*
fun concat(l: List): String {
fun concat(l: List<String>): String? {
val sb = new StringBuilder()
for(s in l) {
sb.append(s)
}
s.toString()
sb.toString()
}