-
Takes 2 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa1st computation
fb2nd computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:)Extension methodTakes 3 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa1st computation
fb2nd computation
fc3rd computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:)Extension methodTakes 4 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:_:)Extension methodTakes 5 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fe5th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:_:_:)Extension methodTakes 6 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fe5th computation
ff6th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:_:_:_:)Extension methodTakes 7 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fe5th computation
ff6th computation
fg7th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:_:_:_:_:)Extension methodTakes 8 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Swift
static func choose<A, B, C, D, E, FF, G, H, Z>( _ fa: Kind<Self, A>, _ fb: Kind<Self, B>, _ fc: Kind<Self, C>, _ fd: Kind<Self, D>, _ fe: Kind<Self, E>, _ ff: Kind<Self, FF>, _ fg: Kind<Self, G>, _ fh: Kind<Self, H>, _ f: (Z) -> Either<A, Either<B, Either<C, Either<D, Either<E, Either<FF, Either<G, H>>>>>>> ) -> Kind<Self, Z>Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fe5th computation
ff6th computation
fg7th computation
fh8th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:_:_:_:_:_:)Extension methodTakes 9 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Swift
static func choose<A, B, C, D, E, FF, G, H, I, Z>( _ fa: Kind<Self, A>, _ fb: Kind<Self, B>, _ fc: Kind<Self, C>, _ fd: Kind<Self, D>, _ fe: Kind<Self, E>, _ ff: Kind<Self, FF>, _ fg: Kind<Self, G>, _ fh: Kind<Self, H>, _ fi: Kind<Self, I>, _ f: (Z) -> Either<A, Either<B, Either<C, Either<D, Either<E, Either<FF, Either<G, Either<H, I>>>>>>>> ) -> Kind<Self, Z>Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fe5th computation
ff6th computation
fg7th computation
fh8th computation
fi9th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
-
choose(_:_:_:_:_:_:_:_:_:_:_:)Extension methodTakes 10 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Swift
static func choose<A, B, C, D, E, FF, G, H, I, J, Z>( _ fa: Kind<Self, A>, _ fb: Kind<Self, B>, _ fc: Kind<Self, C>, _ fd: Kind<Self, D>, _ fe: Kind<Self, E>, _ ff: Kind<Self, FF>, _ fg: Kind<Self, G>, _ fh: Kind<Self, H>, _ fi: Kind<Self, I>, _ fj: Kind<Self, J>, _ f: (Z) -> Either<A, Either<B, Either<C, Either<D, Either<E, Either<FF, Either<G, Either<H, Either<I, J>>>>>>>>> ) -> Kind<Self, Z>Parameters
fa1st computation
fb2nd computation
fc3rd computation
fd4th computation
fe5th computation
ff6th computation
fg7th computation
fh8th computation
fi9th computation
fj10th computation
fDeciding function
Return Value
A computation that decides which of the provided arguments should run.
Install in Dash
Decidable Protocol Reference