Skip to content

Instantly share code, notes, and snippets.

@Mishkun
Created December 5, 2018 13:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mishkun/d8d8bed5648dafbfc2444c27edb9ce8d to your computer and use it in GitHub Desktop.
Save Mishkun/d8d8bed5648dafbfc2444c27edb9ce8d to your computer and use it in GitHub Desktop.
object a<T> {
operator fun get(vararg values:T) = values
}
a[] // empty array
a[1, 2, 3] // arrayOf(1,2,3)
@adolgiy
Copy link

adolgiy commented Feb 17, 2021

amazing! 😍

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