KtCollectionExtensions<T> extension
- on
-
- KtCollection<
T>
- KtCollection<
Methods
-
isNotEmpty(
) → bool -
Returns
true
if the collection is not empty. -
random(
[Random? random]) → T - Returns a random element from this collection.
-
randomOrNull(
[Random? random]) → T? - Returns a random element from this collection.
-
toMutableList(
) → KtMutableList< T> - Returns a KtMutableList filled with all elements of this collection.