@@ -21,7 +21,7 @@ type Arrow[A, B any] = func(context.Context, A, chan<- B) error
2121
2222// Go channel morphism 𝑓: A ⟼ B
2323type F [A , B any ] interface {
24- apply (A ) (B , error )
24+ Apply (A ) (B , error )
2525 errch (cap int ) chan error
2626 catch (context.Context , error , chan <- error ) bool
2727}
@@ -40,8 +40,7 @@ func Lift[A, B any](f EitherE[A, B]) F[A, B] {
4040
4141type pure [A , B any ] EitherE [A , B ]
4242
43- //lint:ignore U1000 false positive
44- func (f pure [A , B ]) apply (a A ) (B , error ) {
43+ func (f pure [A , B ]) Apply (a A ) (B , error ) {
4544 return EitherE [A , B ](f )(a )
4645}
4746
@@ -64,8 +63,7 @@ func Try[A, B any](f EitherE[A, B]) F[A, B] {
6463
6564type try [A , B any ] EitherE [A , B ]
6665
67- //lint:ignore U1000 false positive
68- func (f try [A , B ]) apply (a A ) (B , error ) {
66+ func (f try [A , B ]) Apply (a A ) (B , error ) {
6967 return EitherE [A , B ](f )(a )
7068}
7169
@@ -88,7 +86,7 @@ func (f try[A, B]) catch(ctx context.Context, err error, exx chan<- error) bool
8886
8987// Go channel functor 𝓕: A ⟼ B
9088type FF [A , B any ] interface {
91- apply (context.Context , A , chan <- B ) error
89+ Apply (context.Context , A , chan <- B ) error
9290 errch (cap int ) chan error
9391 catch (context.Context , error , chan <- error ) bool
9492}
@@ -101,8 +99,7 @@ func LiftF[A, B any](f Arrow[A, B]) FF[A, B] {
10199
102100type puref [A , B any ] Arrow [A , B ]
103101
104- //lint:ignore U1000 false positive
105- func (f puref [A , B ]) apply (ctx context.Context , a A , b chan <- B ) error {
102+ func (f puref [A , B ]) Apply (ctx context.Context , a A , b chan <- B ) error {
106103 return Arrow [A , B ](f )(ctx , a , b )
107104}
108105
@@ -125,8 +122,7 @@ func TryF[A, B any](f Arrow[A, B]) FF[A, B] {
125122
126123type tryf [A , B any ] Arrow [A , B ]
127124
128- //lint:ignore U1000 false positive
129- func (f tryf [A , B ]) apply (ctx context.Context , a A , b chan <- B ) error {
125+ func (f tryf [A , B ]) Apply (ctx context.Context , a A , b chan <- B ) error {
130126 return Arrow [A , B ](f )(ctx , a , b )
131127}
132128
0 commit comments