This site requires javascript.
Android Code Search
file:androidx/collection/IntList.kt function:mutableIntListOf
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
collection/collection/src/commonMain/kotlin/androidx/collection/
IntList.kt
content_copy
Preview
904:
905:
906:
907:
908:
909:
/** @return a new empty [MutableIntList] with the default capacity. */
public
inline
fun
mutableIntListOf
(): MutableIntList = MutableIntList()
/** @return a new [MutableIntList] with [element1] as the only item in the list. */
public
fun
mutableIntListOf
(element1: Int): MutableIntList {
val
list = MutableIntList(
1
)
914:
915:
916:
/** @return a new [MutableIntList] with 2 elements, [element1] and [element2], in order. */
public
fun
mutableIntListOf
(element1: Int, element2: Int): MutableIntList {
val
list = MutableIntList(
2
)
924:
925:
926:
*/
public
fun
mutableIntListOf
(element1: Int, element2: Int, element3: Int): MutableIntList {
val
list = MutableIntList(
3
)
933:
934:
935:
/** @return a new [MutableIntList] with the given elements, in order. */
public
inline
fun
mutableIntListOf
(
vararg
elements: Int): MutableIntList =
MutableIntList(elements.size).apply { plusAssign(elements) }
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main