Coproduct8
public final class Coproduct8<A, B, C, D, E, F, G, H> : Coproduct8Of<A, B, C, D, E, F, G, H>Represents a sum type of 8 different types.
- 
                  
                  Creates an instance of a coproduct providing a value of the first type. DeclarationSwift public static func first(_ a: A) -> Coproduct8<A, B, C, D, E, F, G, H>ParametersaValue of the first type of the coproduct. Return ValueA coproduct with a value of the first type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the second type. DeclarationSwift public static func second(_ b: B) -> Coproduct8<A, B, C, D, E, F, G, H>ParametersbValue of the second type of the coproduct. Return ValueA coproduct with a value of the second type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the third type. DeclarationSwift public static func third(_ c: C) -> Coproduct8<A, B, C, D, E, F, G, H>ParameterscValue of the third type of the coproduct. Return ValueA coproduct with a value of the third type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the fourth type. DeclarationSwift public static func fourth(_ d: D) -> Coproduct8<A, B, C, D, E, F, G, H>ParametersdValue of the fourth type of the coproduct. Return ValueA coproduct with a value of the fourth type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the fifth type. DeclarationSwift public static func fifth(_ e: E) -> Coproduct8<A, B, C, D, E, F, G, H>ParameterseValue of the fifth type of the coproduct. Return ValueA coproduct with a value of the fifth type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the sixth type. DeclarationSwift public static func sixth(_ f: F) -> Coproduct8<A, B, C, D, E, F, G, H>ParametersfValue of the sixth type of the coproduct. Return ValueA coproduct with a value of the sixth type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the seventh type. DeclarationSwift public static func seventh(_ g: G) -> Coproduct8<A, B, C, D, E, F, G, H>ParametersgValue of the seventh type of the coproduct. Return ValueA coproduct with a value of the seventh type. 
- 
                  
                  Creates an instance of a coproduct providing a value of the eighth type. DeclarationSwift public static func eighth(_ h: H) -> Coproduct8<A, B, C, D, E, F, G, H>ParametershValue of the eighth type of the coproduct. Return ValueA coproduct with a value of the eighth type. 
- 
                  
                  Applies a function depending on the content of the coproduct. DeclarationSwift public func fold<Z>(_ fa: (A) -> Z, _ fb: (B) -> Z, _ fc: (C) -> Z, _ fd: (D) -> Z, _ fe: (E) -> Z, _ ff: (F) -> Z, _ fg: (G) -> Z, _ fh: (H) -> Z) -> ZParametersfaFunction to apply with a value of the first type. fbFunction to apply with a value of the second type. fcFunction to apply with a value of the third type. fdFunction to apply with a value of the fourth type. feFunction to apply with a value of the fifth type. ffFunction to apply with a value of the sixth type. fgFunction to apply with a value of the seventh type. fhFunction to apply with a value of the eighth type. Return ValueA value resulting of the application of the corresponding function based on the content of the coproduct. 
- 
                  
                  Retrieves the value of the first type, if present. DeclarationSwift public var first: Option<A> { get }
- 
                  
                  Retrieves the value of the second type, if present. DeclarationSwift public var second: Option<B> { get }
- 
                  
                  Retrieves the value of the third type, if present. DeclarationSwift public var third: Option<C> { get }
- 
                  
                  Retrieves the value of the fourth type, if present. DeclarationSwift public var fourth: Option<D> { get }
- 
                  
                  Retrieves the value of the fifth type, if present. DeclarationSwift public var fifth: Option<E> { get }
- 
                  
                  Retrieves the value of the sixth type, if present. DeclarationSwift public var sixth: Option<F> { get }
- 
                  
                  Retrieves the value of the seventh type, if present. DeclarationSwift public var seventh: Option<G> { get }
- 
                  
                  Retrieves the value of the eighth type, if present. DeclarationSwift public var eighth: Option<H> { get }
 
             Install in Dash
              Install in Dash
             Coproduct8 Class Reference
        Coproduct8 Class Reference