-
Wrapped
Singlevalue.Declaration
Swift
public let value: Single<A> -
Safe downcast.
Declaration
Swift
public static func fix(_ value: SingleKOf<A>) -> SingleK<A>Parameters
valueValue in the higher-kind form.
Return Value
Value cast to SingleK.
-
Creates a
SingleKfrom the result of evaluating a function, suspending its execution.Declaration
Swift
public static func from(_ fa: @escaping () throws -> A) -> SingleK<A>Parameters
faFunction providing the value to be provided in the underlying
Single.Return Value
A
SingleKthat provides the value obtained from the closure. -
Creates a
SingleKfrom the result of evaluating a function, suspending its execution.Declaration
Swift
public static func invoke(_ fa: @escaping () throws -> SingleKOf<A>) -> SingleK<A>Parameters
faFunction providing the value to be provided in the underlying
Single.Return Value
A
SingleKthat provides the value obtained from the closure. -
Initializes a value of this type with the underlying
Singlevalue.Declaration
Swift
public init(_ value: Single<A>)Parameters
valueWrapped
Singlevalue.
Install in Dash
SingleK Class Reference