abstract fun add(index: Int, element: E) Common JVM JS Native 1. ![]() abstract fun add(element: E): Boolean Inserts an element into the list at the specified index. Functions Common JVM JS Native 1.0 add Adds the specified element to the end of this list. is full or trying to remove an element when the queue is empty. The mutable list is invariant in its element type. Returns the index of the last item in the list or -1 if the list is empty. No need to repeat the type on the left side if the list is already Mutable. Using listOf () function If you need an immutable empty list instance, you can use the listOf () function, as shown. The mutable list is invariant on its element type. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |