https://kotlinlang.org logo
#announcements
Title
# announcements
q

qwert_ukg

09/15/2017, 3:09 PM
i want to add
get
operator to my type and do something like this
array["a", true, null, 1]
k

karelpeeters

09/15/2017, 3:26 PM
And what's the problem?
q

qwert_ukg

09/18/2017, 2:51 AM
i always need to add the brackets
array()["", 1, true, null]
k

karelpeeters

09/18/2017, 9:28 AM
What kind of object is
array
?
q

qwert_ukg

09/19/2017, 8:39 AM
like this
Copy code
object array {
    operator fun get(vararg values: Any?) = values
}
but without an
object
with inline builder
actually this idea was bad, coze it not so comfortable to build json like this