Documentation / dataflow / com.femastudios.dataflow.util / transform
Go to reference

transform

fun <I, O> transform(field: Field<I>, transformer: (I) -> O): Field<O>

See Field.transform


fun <I1, I2, O> transform(f1: Field<I1>, f2: Field<I2>, transformer: (I1, I2) -> O): Field<O>
inline fun <I1, I2, I3, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, crossinline transformer: (I1, I2, I3) -> O): Field<O>
inline fun <I1, I2, I3, I4, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, crossinline transformer: (I1, I2, I3, I4) -> O): Field<O>
inline fun <I1, I2, I3, I4, I5, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, f5: Field<I5>, crossinline transformer: (I1, I2, I3, I4, I5) -> O): Field<O>
inline fun <I1, I2, I3, I4, I5, I6, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, f5: Field<I5>, f6: Field<I6>, crossinline transformer: (I1, I2, I3, I4, I5, I6) -> O): Field<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, f5: Field<I5>, f6: Field<I6>, f7: Field<I7>, crossinline transformer: (I1, I2, I3, I4, I5, I6, I7) -> O): Field<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, I8, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, f5: Field<I5>, f6: Field<I6>, f7: Field<I7>, f8: Field<I8>, crossinline transformer: (I1, I2, I3, I4, I5, I6, I7, I8) -> O): Field<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, I8, I9, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, f5: Field<I5>, f6: Field<I6>, f7: Field<I7>, f8: Field<I8>, f9: Field<I9>, crossinline transformer: (I1, I2, I3, I4, I5, I6, I7, I8, I9) -> O): Field<O>
inline fun <I1, I2, I3, I4, I5, I6, I7, I8, I9, I10, O> transform(f1: Field<I1>, f2: Field<I2>, f3: Field<I3>, f4: Field<I4>, f5: Field<I5>, f6: Field<I6>, f7: Field<I7>, f8: Field<I8>, f9: Field<I9>, f10: Field<I10>, crossinline transformer: (I1, I2, I3, I4, I5, I6, I7, I8, I9, I10) -> O): Field<O>
inline fun <I, O> transform(fields: List<Field<I>>, crossinline transformer: (List<I>) -> O): Field<O>

Returns a Field whose value is the value of the given fields, transformed according to the given transformer.

When the value of one of the fields changes, the returned Field will change accordingly.