KtCollectionExtensions<T> extension
- on
-
- KtCollection<
T>
- KtCollection<
Methods
-
isNotEmpty(
) → bool -
Available on KtCollection<
ReturnsT> , provided by the KtCollectionExtensions extensiontrue
if the collection is not empty. -
random(
[Random? random]) → T -
Available on KtCollection<
Returns a random element from this collection.T> , provided by the KtCollectionExtensions extension -
randomOrNull(
[Random? random]) → T? -
Available on KtCollection<
Returns a random element from this collection.T> , provided by the KtCollectionExtensions extension -
sumOf<
R extends num> (R selector(T)) → R -
Available on KtCollection<
Returns the sum of all elements in this collection.T> , provided by the KtCollectionExtensions extension -
toMutableList(
) → KtMutableList< T> -
Available on KtCollection<
Returns a KtMutableList filled with all elements of this collection.T> , provided by the KtCollectionExtensions extension