- 
                  
                  Safe downcast. DeclarationSwift public static func fix(_ fa: WriterTOf<F, W, A>) -> WriterT<F, W, A>ParametersfaValue in the higher-kind form. Return ValueValue cast to WriterT. 
- 
                  
                  Initializes a WriterT.DeclarationSwift public init(_ value: Kind<F, (W, A)>)ParametersvalueA pair of accumulator and value wrapped in an effect. 
- 
                  
                  Provides the values wrapped in this WriterT DeclarationSwift public var runT: Kind<F, (W, A)> { get }
- 
                  
                  Initializes a Writer.DeclarationSwift public convenience init(_ value: (W, A))ParametersvalueA pair of accumulator and value. 
- 
                  
                  Initializes a Writer.DeclarationSwift public convenience init(_ w: W, _ a: A)ParameterswThe accumulator initial value. aThe initial value. 
- 
                  
                  Provides the values wrapped in this Writer DeclarationSwift public var run: (W, A) { get }
- 
                  
                  The first element of the pair. DeclarationSwift public var first: W { get }
- 
                  
                  The second element of the pair. DeclarationSwift public var second: A { get }
- 
                  
                  Adds an accumulated value to an effect. DeclarationSwift public static func putT(_ fa: Kind<F, A>, _ w: W) -> WriterT<F, W, A>ParametersfaA value wrapped in an effect. wA value for the accumulator. Return ValueA WriterTwhere the effect wraps the original value with the accumulator.
- 
                  
                  Obtains an effect with the result value. DeclarationSwift public func content() -> Kind<F, A>Return ValueEffect with the result value. 
- 
                  
                  Obtains an effect with the accumulator value. DeclarationSwift public func written() -> Kind<F, W>Return ValueEffect with the accumulator value. 
Functions for WriterT when the effect has an instance of Functor and the accumulator type has an instance of Monoid
- 
                  
                  Creates a WriterTfrom values for the result and accumulator.DeclarationSwift public static func both(_ w: W, _ a: A) -> WriterT<F, W, A>ParameterswInitial value for the accumulator. aInitial value for the result. Return ValueA WriterTwrapping the provided values in an effect.
- 
                  
                  Creates a WriterTfrom a tuple.DeclarationSwift public static func fromTuple(_ z: (W, A)) -> WriterT<F, W, A>ParameterszA tuple where the first component is used for the accumulator and the second for the result value. Return ValueA WriterTwrapping the provided values in an effect.
- 
                  
                  Creates a WriterTfrom values for the result and accumulator.DeclarationSwift public static func put(_ a: A, _ w: W) -> WriterT<F, W, A>ParametersaInitial value for the result. wInitial value for the accumulator. Return ValueA WriterTwrapping the provided values in an effect.
- 
                  
                  Lifts an effect using the accumulator value of this WriterT.DeclarationSwift public func liftF<B>(_ fb: Kind<F, B>) -> WriterT<F, W, B>ParametersfbEffect to be lifted. Return ValueA WriterTwrapping the value contained in the effect parameter and using the accumulator of thisWriterT.
Functions for WriterT when the effect has an instance of Applicative and the accumulator type has an instance of Monoid
- 
                  
                  Creates a WriterTfrom an initial value for the result.DeclarationSwift public static func value(_ a: A) -> WriterT<F, W, A>ParametersaInitial value for the result. Return ValueA WriterTwrapping the provided value and using the empty value of theMonoidfor the accumulator.
- 
                  
                  Transforms the accumulator and result values using a provided function. DeclarationSwift public func transform<B, U>(_ f: @escaping ((W, A)) -> (U, B)) -> WriterT<F, U, B>ParametersfTransforming function. Return ValueA WriterTwhere the original values have been transformed using the provided function.
- 
                  
                  Transforms the wrapped value using a provided function. DeclarationParametersfTransforming function. Return ValueA WriterTwhere the original values have been transformed using the provided function.
- 
                  
                  Transforms the accumulator using the provided function. DeclarationSwift public func mapAcc<U>(_ f: @escaping (W) -> U) -> WriterT<F, U, A>ParametersfTransforming function. Return ValueA WriterTwith the same result as the original one, and the transformed accumulator.
- 
                  
                  Transforms the accumulator and result values using two functions. DeclarationSwift public func bimap<B, U>(_ g: @escaping (W) -> U, _ f: @escaping (A) -> B) -> WriterT<F, U, B>ParametersgTransforming function for the accumulator. fTransforming function for the result. Return ValueA WriterTwhere the original values have been transformed using the provided functions.
- 
                  
                  Flatmaps the provided function to the nested tuple. DeclarationSwift public func subflatMap<B>(_ f: @escaping (A) -> (W, B)) -> WriterT<F, W, B>ParametersfFunction for the flatmap operation. Return ValueResult of flatmapping the provided function to the nested values, wrapped in the effect. 
- 
                  
                  Swaps the result and accumulator values. DeclarationSwift public func swap() -> WriterT<F, A, W>Return ValueA WriterTwhere the accumulator is the original result value and vice versa.
- 
                  
                  Runs this effect and pairs the result with the accumulator for a new result. DeclarationSwift public func listen() -> WriterTOf<F, W, (W, A)>Return ValueA WriterTwhere the result is paired with the accumulator.
Functions for WriterT when the effect has an instance of Monad and the accumulator type has an instance of Monoid
- 
                  
                  Flatmaps a function that produces an effect and lifts it back to WriterT.DeclarationSwift public func semiflatMap<B>(_ f: @escaping (A) -> Kind<F, B>) -> WriterT<F, W, B>ParametersfA function producing an effect. Return ValueResult of flatmapping and lifting the function on this value. 
- 
                  
                  Resets the accumulator to the empty value of the Monoid.DeclarationSwift public func reset() -> WriterT<F, W, A>Return ValueA WriterTvalue with an empty accumulator and the same result value.
 
             Install in Dash
              Install in Dash
             WriterT Class Reference
        WriterT Class Reference