본문
171212(화) - any
Mobile/Kotlin 2017. 12. 12. 10:20
any
- returns true if array has at least one element
fun ShortArray.any(): Boolean
(source)fun FloatArray.any(): Boolean
(source)fun DoubleArray.any(): Boolean
(source)fun BooleanArray.any(): Boolean
(source)- returns true if least one element matches the given predicate.
inline fun ShortArray.any(
predicate: (Short) -> Boolean
): Boolean
(source)inline fun FloatArray.any(
predicate: (Float) -> Boolean
): Boolean
(source)inline fun DoubleArray.any(
predicate: (Double) -> Boolean
): Boolean
(source)inline fun BooleanArray.any(
predicate: (Boolean) -> Boolean
): Boolean
(source)- returns true if collection has at least one element.
- returns true if map has at least one entry
- return true if at least one entry matches the given predicate.
inline fun <K, V> Map<out K, V>.any(
predicate: (Entry<K, V>) -> Boolean
): Boolean
(source)'Mobile > Kotlin' 카테고리의 다른 글
171215(금) - Kotlin docs (Inline Functions) (0) | 2017.12.15 |
---|---|
171212(화) - Kotlin docs (Object Expressions and Declarations) (0) | 2017.12.12 |
171211(월) - Using scope functions (0) | 2017.12.11 |
171102(목) - Kotlin docs (Data Classes) (0) | 2017.11.03 |
170828(월) - Kotlin docs (Extensions) (0) | 2017.08.28 |
댓글