mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-03 02:23:22 +00:00
add android tools
This commit is contained in:
1 parent
97dadf517a
commit
5ce71ee6f6
44 files changed
+862
-31
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package dev.inmo.micro_utils.common
|
||||
|
||||
@Suppress("UNCHECKED_CAST", "SimplifiableCall")
|
||||
inline fun <T, R> Iterable<T>.mapNotNullA(transform: (T) -> R?): List<R> = map(transform).filter { it != null } as List<R>
|
||||
|
||||
@Suppress("UNCHECKED_CAST", "SimplifiableCall")
|
||||
inline fun <T, R> Array<T>.mapNotNullA(mapper: (T) -> R?): List<R> = map(mapper).filter { it != null } as List<R>
|
||||
Reference in new issue
Block a user