intListOf

Return

a read-only IntList with nothing in it.


fun intListOf(element1: Int): IntList(source)

Return

a new read-only IntList with element1 as the only item in the list.


fun intListOf(element1: Int, element2: Int): IntList(source)

Return

a new read-only IntList with 2 elements, element1 and element2, in order.


fun intListOf(element1: Int, element2: Int, element3: Int): IntList(source)

Return

a new read-only IntList with 3 elements, element1, element2, and element3, in order.


fun intListOf(vararg elements: Int): IntList(source)

Return

a new read-only IntList with elements in order.