Hello, I'm playing with Kotlin, and was wondering ...
# getting-started
t
Hello, I'm playing with Kotlin, and was wondering if I'm wrong, or if it's not in Kotlin yet, about what I'm trying to do.
Copy code
sealed class Card {
    class Trump(value: Int) 
}
cards += (1..21).map { Card.Trump(it) } // This working 
cards += (1..21).map(Card::Trump) // This raise me an error (but no highlight)