ifNotEmpty

inline fun <T : Enum<T>, R> BitField<T>.ifNotEmpty(transform: (BitField<T>) -> R): R?(source)

Applies a transformation to a BitField if it's not empty.