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

first

fun Attribute<CharProgression>.first(): Attribute<Char>

Same as first, but returns a new Attribute

See Also

kotlin.ranges.CharProgression.first


fun Attribute<IntProgression>.first(): Attribute<Int>

Same as first, but returns a new Attribute

See Also

kotlin.ranges.IntProgression.first


fun <T> Attribute<Iterable<T>>.first(): Attribute<T>
fun <T> Attribute<Iterable<T>>.first(predicate: (T) -> Boolean): Attribute<T>
fun <T> Attribute<List<T>>.first(): Attribute<T>

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

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

This is simply a convenience function.

See Also

kotlin.collections.first


fun Attribute<LongProgression>.first(): Attribute<Long>

Same as first, but returns a new Attribute

See Also

kotlin.ranges.LongProgression.first


fun <A> Attribute<Pair<A, *>>.first(): Attribute<A>

Same as first, but returns a new Attribute

See Also

kotlin.Pair.first


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

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

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

This is simply a convenience function.

See Also

kotlin.sequences.first


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

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

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

This is simply a convenience function.

See Also

kotlin.text.first


fun <A> Attribute<Triple<A, *, *>>.first(): Attribute<A>

Same as first, but returns a new Attribute

See Also

kotlin.Triple.first