Last active
January 13, 2022 23:06
-
-
Save ramirez7/0f016a1b0f3d5c6276551ff9d17f6126 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
| fun <A> trace(a: A): A { | |
| println(a) | |
| return a | |
| } | |
| fun <A, B> named(a: A, b: B) {} | |
| fun main(args: Array<String>) { | |
| named(a = trace("it's"), b = trace("belphegor")) | |
| println("----------") | |
| named(b = trace("belphegor"), a = trace("it's")) | |
| } | |
| /* | |
| OUTPUT: | |
| it's | |
| belphegor | |
| ---------- | |
| belphegor | |
| it's | |
| */ |
Author
ramirez7
commented
Jan 13, 2022

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment