data class Person(val name: String?, val age: Int) val person = Person(null, 30) person.name?.get(0)?.let(::println)
Preview:
        downloadDownload PNG
        downloadDownload JPEG
                        downloadDownload SVG
        
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter