mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-04 15:49:23 +00:00
fix pagination
This commit is contained in:
@@ -25,7 +25,7 @@ interface Pagination : ClosedRange<Int> {
|
|||||||
override val start: Int
|
override val start: Int
|
||||||
get() = page * size
|
get() = page * size
|
||||||
override val endInclusive: Int
|
override val endInclusive: Int
|
||||||
get() = lastIndex
|
get() = start + size - 1
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Pagination.intersect(
|
fun Pagination.intersect(
|
||||||
|
Reference in New Issue
Block a user