optionallyReverse

fun <T> List<T>.optionallyReverse(reverse: Boolean): List<T>
fun <T> Set<T>.optionallyReverse(reverse: Boolean): Set<T>
inline fun <T> Array<T>.optionallyReverse(reverse: Boolean): Array<T>
fun Pagination.optionallyReverse(objectsCount: Int, reverse: Boolean): Pagination
fun Pagination.optionallyReverse(objectsCount: Long, reverse: Boolean): Pagination