mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
11 lines
215 B
Plaintext
11 lines
215 B
Plaintext
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()
|
|
}
|