mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-02 07:55:13 +00:00
9 lines
291 B
Kotlin
9 lines
291 B
Kotlin
package dev.inmo.micro_utils.repos
|
|
|
|
import androidx.core.content.contentValuesOf
|
|
|
|
@Suppress("UNCHECKED_CAST", "SimplifiableCall")
|
|
fun contentValuesOfNotNull(vararg pairs: Pair<String, Any?>?) = contentValuesOf(
|
|
*(pairs.filter { it != null } as List<Pair<String, Any?>>).toTypedArray()
|
|
)
|