Collection
A read-only view of a group of elements with size and membership queries.
Read-only access does not guarantee immutability. A view of a mutable collection may observe later changes. Concrete implementations define ordering and whether duplicates are permitted.
Type Parameters
T
element type.
Inheritors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks whether this collection contains at least one element.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T, R : Any, C : MutableCollection<in R>> Iterable<T>.mapNotNullTo(destination: C, transform: (T) -> R?): C
Appends non-null transformed elements to destination in iteration order.
Link copied to clipboard
Link copied to clipboard