QuranListExtensions<T> extension

Extensions on List for common operations.

on

Properties

frequency Map<T, int>

Available on List<T>, provided by the QuranListExtensions extension

Count occurrences of each element
no setter
random → T?

Available on List<T>, provided by the QuranListExtensions extension

Get a random element from the list
no setter
unique List<T>

Available on List<T>, provided by the QuranListExtensions extension

Get unique elements while preserving order
no setter

Methods

chunked(int chunkSize) List<List<T>>

Available on List<T>, provided by the QuranListExtensions extension

Split list into chunks of specified size
getAtIndices(List<int> indices) List<T>

Available on List<T>, provided by the QuranListExtensions extension

Get elements at specified indices
groupBy<K>(K keyFunction(T)) Map<K, List<T>>

Available on List<T>, provided by the QuranListExtensions extension

Group elements by a key function