All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hnau.emitter.extensions.byte.EmitterByteArrayExtensions.kt Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package org.hnau.emitter.extensions.byte

import org.hnau.emitter.Emitter
import org.hnau.emitter.extensions.callIf
import org.hnau.emitter.extensions.filter
import org.hnau.emitter.extensions.map

fun Emitter.callIfEmpty() = callIf { it.isEmpty() }
fun Emitter.callIfNotEmpty() = callIf { it.isNotEmpty() }

fun Emitter.filterEmpty() = filter { it.isEmpty() }
fun Emitter.filterNotEmpty() = filter { it.isNotEmpty() }
fun Emitter.mapIsEmpty() = map { it.isEmpty() }
fun Emitter.mapIsNotEmpty() = map { it.isNotEmpty() }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy