mirror of
https://github.com/IBM/fp-go.git
synced 2025-08-10 22:31:32 +02:00
fix: doc and parameter order
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Code generated by go generate; DO NOT EDIT.
|
||||
// This file was generated by robots at
|
||||
// 2023-07-18 15:21:45.9564072 +0200 CEST m=+0.081399101
|
||||
// 2023-07-19 16:18:55.4405883 +0200 CEST m=+0.019120301
|
||||
package readerioeither
|
||||
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// Code generated by go generate; DO NOT EDIT.
|
||||
// This file was generated by robots at
|
||||
// 2023-07-18 15:21:45.957526 +0200 CEST m=+0.082517901
|
||||
// 2023-07-19 16:18:55.4415885 +0200 CEST m=+0.020120501
|
||||
package generic
|
||||
|
||||
|
||||
|
@@ -114,7 +114,7 @@ func MonadAp[R, E, A, B any](fab ReaderIOEither[R, E, func(A) B], fa ReaderIOEit
|
||||
return G.MonadAp[ReaderIOEither[R, E, A], ReaderIOEither[R, E, B]](fab, fa)
|
||||
}
|
||||
|
||||
func Ap[R, E, A, B any](fa ReaderIOEither[R, E, A]) func(fab ReaderIOEither[R, E, func(A) B]) ReaderIOEither[R, E, B] {
|
||||
func Ap[B, R, E, A any](fa ReaderIOEither[R, E, A]) func(fab ReaderIOEither[R, E, func(A) B]) ReaderIOEither[R, E, B] {
|
||||
return G.Ap[ReaderIOEither[R, E, A], ReaderIOEither[R, E, B], ReaderIOEither[R, E, func(A) B]](fa)
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ func TestOrLeft(t *testing.T) {
|
||||
func TestAp(t *testing.T) {
|
||||
g := F.Pipe1(
|
||||
Right[context.Context, error](utils.Double),
|
||||
Ap[context.Context, error, int, int](Right[context.Context, error](1)),
|
||||
Ap[int](Right[context.Context, error](1)),
|
||||
)
|
||||
|
||||
assert.Equal(t, E.Right[error](2), g(context.Background())())
|
||||
|
Reference in New Issue
Block a user