buildArray(_:)
ReducerBuilder.swift:11static func buildArray(_ reducers: [some Reducer<State, Action>]) -> some Reducer<State, Action>
static func buildArray(_ reducers: [some Reducer<State, Action>]) -> some Reducer<State, Action>
s22ComposableArchitecture14ReducerBuilderO10buildArrayyQrSayqd__G5StateQyd__Rsz6ActionQyd__Rs_AA0C0Rd__lFZ
What are these?5NMWV
import ComposableArchitecture
The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
@resultBuilder enum ReducerBuilder<State, Action>
A result builder for combining reducers into a single reducer by running each, one after the other, and merging their effects.
protocol Reducer<State, Action>
A protocol that describes how to evolve the current state of an application to the next state, given an action, and describes what Effect
s should be executed later by the store, if any.
static func buildExpression<R>(_ expression: R) -> R where State == R.State, Action == R.Action, R : Reducer
static func buildExpression(_ expression: any Reducer<State, Action>) -> Reduce<State, Action>
static func buildBlock<R>(_ reducer: R) -> R where State == R.State, Action == R.Action, R : Reducer
static func buildBlock() -> some Reducer<State, Action>
static func buildPartialBlock<R>(first: R) -> R where State == R.State, Action == R.Action, R : Reducer
static func buildPartialBlock<R0, R1>(accumulated: R0, next: R1) -> _Sequence<R0, R1> where State == R0.State, Action == R0.Action, R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State
static func buildOptional<R>(_ wrapped: R?) -> R? where State == R.State, Action == R.Action, R : Reducer
static func buildEither<R0, R1>(first reducer: R0) -> _Conditional<R0, R1> where State == R0.State, Action == R0.Action, R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State
static func buildEither<R0, R1>(second reducer: R1) -> _Conditional<R0, R1> where State == R0.State, Action == R0.Action, R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State
static func buildLimitedAvailability(_ wrapped: some Reducer<State, Action>) -> Reduce<State, Action>
static func buildFinalResult<R>(_ reducer: R) -> R where State == R.State, Action == R.Action, R : Reducer
enum _Conditional<First, Second> where First : Reducer, Second : Reducer, First.Action == Second.Action, First.State == Second.State
struct _Sequence<R0, R1> where R0 : Reducer, R1 : Reducer, R0.Action == R1.Action, R0.State == R1.State
struct _SequenceMany<Element> where Element : Reducer