Created
January 24, 2019 09:59
-
-
Save liangfeidotme/86421be42dfdb89f669d11affd403ae1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Animal(val name: String) | |
val animals = listOf(Animal("cat"), Animal("dog"), Animal("wolf")) | |
fun main() { | |
println("Hello, world!!!") | |
println(animals.joinToString(",") { it.name }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment