Skip to content

Commit

Permalink
Merge pull request #46 from a-lipson/main
Browse files Browse the repository at this point in the history
Modified doc for generateTupled functions (& changed occurences)
  • Loading branch information
CarstenLeue authored Sep 19, 2023
2 parents 34844bc + b4d2a5c commit bf33f4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cli/tuple.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func generateUntupled(f *os.File, i int) {

func generateTupled(f *os.File, i int) {
// Create the optionize version
fmt.Fprintf(f, "\n// Tupled%d converts a function with %d parameters returning into a function taking a Tuple%d\n// The inverse function is [Untupled%d]\n", i, i, i, i)
fmt.Fprintf(f, "\n// Tupled%d converts a function with %d parameters into a function taking a Tuple%d\n// The inverse function is [Untupled%d]\n", i, i, i, i)
fmt.Fprintf(f, "func Tupled%d[F ~func(", i)
for j := 0; j < i; j++ {
if j > 0 {
Expand Down
2 changes: 1 addition & 1 deletion ioeither/ioeither.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func MonadChainFirstIOK[E, A, B any](ma IOEither[E, A], f func(A) I.IO[B]) IOEit
return G.MonadChainFirstIOK(ma, f)
}

// ChainFirsIOKt runs the monad returned by the function but returns the result of the original monad
// ChainFirsIOK runs the monad returned by the function but returns the result of the original monad
func ChainFirstIOK[E, A, B any](f func(A) I.IO[B]) func(IOEither[E, A]) IOEither[E, A] {
return G.ChainFirstIOK[IOEither[E, A]](f)
}
Expand Down
20 changes: 10 additions & 10 deletions tuple/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf33f4f

Please sign in to comment.