
ru.hnau.jutils.producer.extensions.ProducerExtensionsArray.kt Maven / Gradle / Ivy
The newest version!
package ru.hnau.jutils.producer.extensions
import ru.hnau.jutils.producer.Producer
fun Producer>.callIfEmpty() = callIf { it.isEmpty() }
fun Producer?>.callIfNullOrEmpty() = callIf { it.isNullOrEmpty() }
fun Producer>.filterNotEmpty() = filter { it.isNotEmpty() }
fun Producer>.mapIsEmpty() = map { it.isEmpty() }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy