-
Underlying function describing the endomorphism.
Declaration
Swift
public let run: (A) -> A -
Safe downcast.
Declaration
Swift
public static func fix(_ fa: EndoOf<A>) -> Endo<A>Parameters
faValue in the higher-kind form.
Return Value
Value cast to Endo.
-
Initializes an endomorphism from a plain Swift function.
Declaration
Swift
public init(_ run: @escaping (A) -> A)Parameters
runFunction describing the endomorphism.
-
Invokes this endo-function.
Declaration
Swift
public func callAsFunction(_ value: A) -> AParameters
valueInput to the function.
Return Value
Output of the function.
-
Declaration
Swift
public func combine(_ other: Endo<A>) -> Endo<A>
-
Declaration
Swift
public static func empty() -> Endo<A>
Install in Dash
Endo Class Reference