commonMain.fr.haan.bipak.Paging.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bipak-core-jvm Show documentation
Show all versions of bipak-core-jvm Show documentation
Core library of BiPaK is a Kotlin multiplatform paging library.
package fr.haan.bipak
/**
* Returns a PagingData containing the results of applying the given transform function to each element in the original list.
*/
public fun PagingData.map(transform: (I) -> O): PagingData {
return PagingData(
list = list.map { transform(it) },
state = state,
totalCount = totalCount,
)
}
internal fun pagingDebugLog(str: String) {
// Log.d("Paging", str)
println(str)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy