mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
213 B
Kotlin
Vendored
11 lines
213 B
Kotlin
Vendored
import java.util.*
|
|
|
|
fun concat(l: List<String>): String? {
|
|
val sb = StringBuilder()
|
|
for(s in l) {
|
|
val x = if(l.size > 1) { "T" } else { "F" };
|
|
sb.append(x)
|
|
}
|
|
return sb.toString()
|
|
}
|