-
Takes 2 computations and produces a new one that decides which one will be run, based on a provided function.
Declaration
Parameters
fa
1st computation
fb
2nd computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
fe
5th computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
fe
5th computation
ff
6th computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
fe
5th computation
ff
6th computation
fg
7th computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
fe
5th computation
ff
6th computation
fg
7th computation
fh
8th computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
fe
5th computation
ff
6th computation
fg
7th computation
fh
8th computation
fi
9th computation
f
Deciding 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
fa
1st computation
fb
2nd computation
fc
3rd computation
fd
4th computation
fe
5th computation
ff
6th computation
fg
7th computation
fh
8th computation
fi
9th computation
fj
10th computation
f
Deciding function
Return Value
A computation that decides which of the provided arguments should run.