Last active
December 22, 2021 09:49
-
-
Save nbness2/9478f42e101486c688dfa1d4c4a8c499 to your computer and use it in GitHub Desktop.
Last parameter SAM example
This file contains 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
fun string(rs: ReturnString) = rs | |
fun main() { | |
val str = string { "A String" } | |
println(str.string) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment