This site requires javascript.
Android Code Search
file:androidx/collection/LongList.kt function:mutableLongListOf
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/
LongList.kt
content_copy
Preview
907:
908:
909:
910:
911:
912:
/** @return a new empty [MutableLongList] with the default capacity. */
public
inline
fun
mutableLongListOf
(): MutableLongList = MutableLongList()
/** @return a new [MutableLongList] with [element1] as the only item in the list. */
public
fun
mutableLongListOf
(element1: Long): MutableLongList {
val
list = MutableLongList(
1
)
917:
918:
919:
/** @return a new [MutableLongList] with 2 elements, [element1] and [element2], in order. */
public
fun
mutableLongListOf
(element1: Long, element2: Long): MutableLongList {
val
list = MutableLongList(
2
)
928:
929:
930:
*/
public
fun
mutableLongListOf
(element1: Long, element2: Long, element3: Long): MutableLongList {
val
list = MutableLongList(
3
)
937:
938:
939:
/** @return a new [MutableLongList] with the given elements, in order. */
public
inline
fun
mutableLongListOf
(
vararg
elements: Long): MutableLongList =
MutableLongList(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
Open branch androidx-main
Help