Getter
public class Getter<S, A>A Getter is an optic that allows to see into a structure and getting a focus.
It can be seen as a function (S) -> A meaning that we can look into an S and get an A.
Parameters:
    - S: source of the Getter.
    - A: focus of the Getter.
- 
                  
                  Composes a Getterwith anotherGetter.DeclarationSwift public static func + <C>(lhs: Getter<S, A>, rhs: Getter<A, C>) -> Getter<S, C>ParameterslhsLeft side of the composition. rhsRight side of the composition. Return ValueA Getterresulting from the sequential application of the two provided optics.
- 
                  
                  Composes a Getterwith aLens.DeclarationSwift public static func + <C>(lhs: Getter<S, A>, rhs: Lens<A, C>) -> Getter<S, C>ParameterslhsLeft side of the composition. rhsRight side of the composition. Return ValueA Getterresulting from the sequential application of the two provided optics.
- 
                  
                  Composes a Getterwith anIso.DeclarationSwift public static func + <C>(lhs: Getter<S, A>, rhs: Iso<A, C>) -> Getter<S, C>ParameterslhsLeft side of the composition. rhsRight side of the composition. Return ValueA Getterresulting from the sequential application of the two provided optics.
- 
                  
                  Initializes a Getter. DeclarationSwift public init(get: @escaping (S) -> A)ParametersgetFunction to focus into a structure. 
- 
                  
                  Obtains the focus for a given source. DeclarationSwift public func get(_ s: S) -> AParameterssSource. Return ValueFocus. 
- 
                  
                  Joins two Getters with the same focus. DeclarationSwift public func choice<C>(_ other: Getter<C, A>) -> Getter<Either<S, C>, A>ParametersotherGetterto join with.Return ValueA Getterthat operates on either of the sources and extracts their focus.
- 
                  
                  Pairs two disjoint Getters. DeclarationSwift public func split<C, D>(_ other: Getter<C, D>) -> Getter<(S, C), (A, D)>ParametersotherGetterto pair with.Return ValueA Getterthat operates in both sources at the same time, extracting both foci.
- 
                  
                  Zips two Getters with the same source. DeclarationSwift public func zip<C>(_ other: Getter<S, C>) -> Getter<S, (A, C)>ParametersotherGetterto zip with.Return ValueA Getterthat extracts both foci for a given source.
- 
                  
                  Pairs this Getterwith another type, placing this as the first element.DeclarationSwift public func first<C>() -> Getter<(S, C), (A, C)>Return ValueA Getterthat operates on tuples where the second argument remains unchanged.
- 
                  
                  Pairs this Getterwith another type, placing this as the second element.DeclarationSwift public func second<C>() -> Getter<(C, S), (C, A)>Return ValueA Getterthat operates on tuples where the first argument remains unchanged.
- 
                  
                  Composes this Getterwith aGetter.DeclarationSwift public func compose<C>(_ other: Getter<A, C>) -> Getter<S, C>ParametersotherValue to compose with. Return ValueA Getterresulting from the sequential application of both optics.
- 
                  
                  Composes this Getterwith aLens.DeclarationSwift public func compose<C>(_ other: Lens<A, C>) -> Getter<S, C>ParametersotherValue to compose with. Return ValueA Getterresulting from the sequential application of both optics.
- 
                  
                  Composes this Getterwith anIso.DeclarationSwift public func compose<C>(_ other: Iso<A, C>) -> Getter<S, C>ParametersotherValue to compose with. Return ValueA Getterresulting from the sequential application of both optics.
- 
                  
                  Obtains the focus if it matches a predicate. DeclarationSwift public func find(_ s: S, _ predicate: (A) -> Bool) -> Option<A>ParameterssSource. predicateTesting predicate. Return ValueAn optional value that is present if the focus matches the predicate, or empty otherwise. 
- 
                  
                  Checks if the focus matches a predicate. DeclarationSwift public func exists(_ s: S, _ predicate: (A) -> Bool) -> BoolParameterssSource. predicateTesting predicate. Return ValueA boolean value indicating if the focus matches the predicate. 
- 
                  
                  Focuses on a specific index of this getter. DeclarationSwift func at(_ i: A.AtIndex) -> Getter<S, A.AtFoci>ParametersiIndex to focus. Return ValueA getter from this structure to the focused index. 
- 
                  
                  Provides an identity Getter.DeclarationSwift static var identity: Getter<S, S> { get }
- 
                  
                  Provides a Getterthat takes eitherSorSand strips the choice ofS.DeclarationSwift static var codiagonal: Getter<Either<S, S>, S> { get }
 
             Install in Dash
              Install in Dash
             Getter Class Reference
        Getter Class Reference