Created
December 5, 2018 13:22
-
-
Save Mishkun/d8d8bed5648dafbfc2444c27edb9ce8d to your computer and use it in GitHub Desktop.
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
object a<T> { | |
operator fun get(vararg values:T) = values | |
} | |
a[] // empty array | |
a[1, 2, 3] // arrayOf(1,2,3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
amazing! 😍