-
Safe downcast.
Declaration
Swift
public static func fix(_ value: DayOf<F, G, A>) -> Day<F, G, A>
Parameters
value
Value in the higher-kind form.
Return Value
Value cast to Day.
-
Runs the Day convolution.
Declaration
Swift
public func run() -> A
Return Value
Result of the convolution.
-
Associates the convolution of three Functors to the left.
It goes from
Day f (Day g h) a
toDay (Day f g) h a
.Declaration
Swift
public func assoc<FF: Comonad, GG: Comonad>() -> Day<DayPartial<F, FF>, GG, A> where G == DayPartial<FF, GG>
Return Value
Left associated Day convolution.
-
Associates the convolution of three Functors to the right.
It goes from
Day (Day f g) h a
toDay f (Day g h) a
.Declaration
Swift
public func disassoc<FF: Comonad, GG: Comonad>() -> Day<FF, DayPartial<GG, G>, A> where F == DayPartial<FF, GG>
Return Value
Right associated Day convolution.
-
Swaps the convoluted Functors.
Declaration
Swift
public func swapped() -> Day<G, F, A>
Return Value
A Day convolution with Functors swapped.
-
Collapses the convolution using Applicative.map.
Declaration
Swift
func dap() -> Kind<F, A>
Return Value
Result of the convolution.
-
Eliminates Id from the left of this convolution.
Declaration
Swift
func elim1() -> Kind<G, A>
Return Value
Result of eliminating Id from the left of the convolution.
-
Eliminates Id from the right of this convolution.
Declaration
Swift
func elim2() -> Kind<F, A>
Return Value
Result of eliminating Id from the right of the convolution.