Update core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/ScrollbarExt.kt

Co-authored-by: Don Turner <dturner@users.noreply.github.com>
pull/1039/head
Simon Marquis 1 year ago committed by GitHub
parent 9d41ffa318
commit bdb10a6870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -231,4 +231,4 @@ fun LazyStaggeredGridState.scrollbarState(
}
private inline fun <T> List<T>.floatSumOf(selector: (T) -> Float): Float =
fold(0f) { acc, it -> acc + selector(it) }
fold(initial = 0f) { accumulator, listItem -> accumulator + selector(listItem) }

Loading…
Cancel
Save