Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / count
Go to reference

count

fun <T> Attribute<Collection<T>>.count(): Attribute<Int>
fun <T> Attribute<Iterable<T>>.count(): Attribute<Int>
fun <T> Attribute<Iterable<T>>.count(predicate: (T) -> Boolean): Attribute<Int>
fun <K, V> Attribute<Map<K, V>>.count(): Attribute<Int>
fun <K, V> Attribute<Map<K, V>>.count(predicate: (Entry<K, V>) -> Boolean): Attribute<Int>

Same as count, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling count in the transformation function.

This is simply a convenience function.

See Also

kotlin.collections.count


fun <T> Attribute<Sequence<T>>.count(): Attribute<Int>
fun <T> Attribute<Sequence<T>>.count(predicate: (T) -> Boolean): Attribute<Int>

Same as count, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling count in the transformation function.

This is simply a convenience function.

See Also

kotlin.sequences.count


fun Attribute<String>.count(): Attribute<Int>
fun Attribute<String>.count(predicate: (Char) -> Boolean): Attribute<Int>

Same as count, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling count in the transformation function.

This is simply a convenience function.

See Also

kotlin.text.count