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

count

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

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

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> Field<Sequence<T>>.count(): Field<Int>
fun <T> Field<Sequence<T>>.count(predicate: (T) -> Boolean): Field<Int>

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

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 Field<String>.count(): Field<Int>
fun Field<String>.count(predicate: (Char) -> Boolean): Field<Int>

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

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