ImmutableList

data class ImmutableList<out T>(val value: List<T> = listOf())

Immutable list

Parameters

out

T type T

Constructors

Link copied to clipboard
constructor(value: List<T> = listOf())

Properties

Link copied to clipboard
val value: List<T>

List input list

Functions

Link copied to clipboard
fun count(): Int

Returns the count of the elements in the immutable list

Link copied to clipboard
fun getOrNull(index: Int): T?

Returns the element at provided index in immutable list

Link copied to clipboard

Returns true if the list is empty, false otherwise

Link copied to clipboard

Returns true if the list is not empty, false otherwise