We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218dc97 commit e35637aCopy full SHA for e35637a
kotlinx-coroutines-core/common/src/flow/operators/Limit.kt
@@ -23,7 +23,7 @@ public fun <T> Flow<T>.drop(count: Int): Flow<T> {
23
return flow {
24
var skipped = 0
25
collect { value ->
26
- if (++skipped > count) emit(value)
+ if (skipped >= count) emit(value) else ++skipped
27
}
28
29
0 commit comments