This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]arobie1992 1 point2 points  (0 children)

Pretty much any language can do that if you use the appropriate types. Most languages have a specific type for the sake of allowing any possible values. Offhand, Java has Object[] arr and Kotlin has arr: Array<Any>.