zip3<B, C, Z> method

LoadingState<Z> zip3<B, C, Z>(
  1. LoadingState<B> state2,
  2. LoadingState<C> state3,
  3. Z transform(
    1. A rawContent1,
    2. B rawContent2,
    3. C rawContent3
    )
)

Implementation

LoadingState<Z> zip3<B, C, Z>(LoadingState<B> state2, LoadingState<C> state3, Z Function(A rawContent1, B rawContent2, C rawContent3) transform) {
  return zip2(state2, (rawContent, B other) {
    return Tuple2(rawContent, other);
  }).zip2(state3, (rawContent, C other) {
    return transform(rawContent.item1, rawContent.item2, other);
  });
}