2023-07-18 15:24:00 +02:00
// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at
2024-05-24 21:43:36 +02:00
// 2024-05-24 17:26:07.2835624 +0200 CEST m=+0.011499301
2023-08-11 11:56:11 +02:00
2023-07-18 15:24:00 +02:00
package readerioeither
import (
2023-10-24 12:27:10 +02:00
G "github.com/IBM/fp-go/readerioeither/generic"
2023-07-18 15:24:00 +02:00
)
// From0 converts a function with 1 parameters returning a tuple into a function with 0 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From0 [ F ~ func ( C ) func ( ) ( R , error ) , C , R any ] ( f F ) func ( ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From0 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize0 converts a function with 1 parameters returning a tuple into a function with 0 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize0 [ F ~ func ( C ) ( R , error ) , C , R any ] ( f F ) func ( ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize0 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize0 converts a function with 1 parameters returning a [ReaderIOEither[C, error, R]] into a function with 0 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize0 [ F ~ func ( ) ReaderIOEither [ C , error , R ] , C , R any ] ( f F ) func ( C ) ( R , error ) {
return G . Uneitherize0 [ ReaderIOEither [ C , error , R ] , func ( C ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From1 converts a function with 2 parameters returning a tuple into a function with 1 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From1 [ F ~ func ( C , T0 ) func ( ) ( R , error ) , T0 , C , R any ] ( f F ) func ( T0 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From1 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize1 converts a function with 2 parameters returning a tuple into a function with 1 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize1 [ F ~ func ( C , T0 ) ( R , error ) , T0 , C , R any ] ( f F ) func ( T0 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize1 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize1 converts a function with 2 parameters returning a [ReaderIOEither[C, error, R]] into a function with 1 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize1 [ F ~ func ( T0 ) ReaderIOEither [ C , error , R ] , T0 , C , R any ] ( f F ) func ( C , T0 ) ( R , error ) {
return G . Uneitherize1 [ ReaderIOEither [ C , error , R ] , func ( C , T0 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From2 converts a function with 3 parameters returning a tuple into a function with 2 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From2 [ F ~ func ( C , T0 , T1 ) func ( ) ( R , error ) , T0 , T1 , C , R any ] ( f F ) func ( T0 , T1 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From2 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize2 converts a function with 3 parameters returning a tuple into a function with 2 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize2 [ F ~ func ( C , T0 , T1 ) ( R , error ) , T0 , T1 , C , R any ] ( f F ) func ( T0 , T1 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize2 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize2 converts a function with 3 parameters returning a [ReaderIOEither[C, error, R]] into a function with 2 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize2 [ F ~ func ( T0 , T1 ) ReaderIOEither [ C , error , R ] , T0 , T1 , C , R any ] ( f F ) func ( C , T0 , T1 ) ( R , error ) {
return G . Uneitherize2 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From3 converts a function with 4 parameters returning a tuple into a function with 3 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From3 [ F ~ func ( C , T0 , T1 , T2 ) func ( ) ( R , error ) , T0 , T1 , T2 , C , R any ] ( f F ) func ( T0 , T1 , T2 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From3 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize3 converts a function with 4 parameters returning a tuple into a function with 3 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize3 [ F ~ func ( C , T0 , T1 , T2 ) ( R , error ) , T0 , T1 , T2 , C , R any ] ( f F ) func ( T0 , T1 , T2 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize3 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize3 converts a function with 4 parameters returning a [ReaderIOEither[C, error, R]] into a function with 3 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize3 [ F ~ func ( T0 , T1 , T2 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 ) ( R , error ) {
return G . Uneitherize3 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From4 converts a function with 5 parameters returning a tuple into a function with 4 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From4 [ F ~ func ( C , T0 , T1 , T2 , T3 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From4 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize4 converts a function with 5 parameters returning a tuple into a function with 4 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize4 [ F ~ func ( C , T0 , T1 , T2 , T3 ) ( R , error ) , T0 , T1 , T2 , T3 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize4 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize4 converts a function with 5 parameters returning a [ReaderIOEither[C, error, R]] into a function with 4 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize4 [ F ~ func ( T0 , T1 , T2 , T3 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 ) ( R , error ) {
return G . Uneitherize4 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From5 converts a function with 6 parameters returning a tuple into a function with 5 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From5 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From5 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize5 converts a function with 6 parameters returning a tuple into a function with 5 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize5 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize5 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize5 converts a function with 6 parameters returning a [ReaderIOEither[C, error, R]] into a function with 5 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize5 [ F ~ func ( T0 , T1 , T2 , T3 , T4 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , T4 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 , T4 ) ( R , error ) {
return G . Uneitherize5 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 , T4 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From6 converts a function with 7 parameters returning a tuple into a function with 6 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From6 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From6 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize6 converts a function with 7 parameters returning a tuple into a function with 6 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize6 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize6 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize6 converts a function with 7 parameters returning a [ReaderIOEither[C, error, R]] into a function with 6 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize6 [ F ~ func ( T0 , T1 , T2 , T3 , T4 , T5 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , T4 , T5 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 , T4 , T5 ) ( R , error ) {
return G . Uneitherize6 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 , T4 , T5 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From7 converts a function with 8 parameters returning a tuple into a function with 7 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From7 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From7 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize7 converts a function with 8 parameters returning a tuple into a function with 7 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize7 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize7 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize7 converts a function with 8 parameters returning a [ReaderIOEither[C, error, R]] into a function with 7 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize7 [ F ~ func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , T4 , T5 , T6 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 ) ( R , error ) {
return G . Uneitherize7 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From8 converts a function with 9 parameters returning a tuple into a function with 8 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From8 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From8 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize8 converts a function with 9 parameters returning a tuple into a function with 8 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize8 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize8 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize8 converts a function with 9 parameters returning a [ReaderIOEither[C, error, R]] into a function with 8 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize8 [ F ~ func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) ( R , error ) {
return G . Uneitherize8 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From9 converts a function with 10 parameters returning a tuple into a function with 9 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From9 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From9 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize9 converts a function with 10 parameters returning a tuple into a function with 9 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize9 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize9 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize9 converts a function with 10 parameters returning a [ReaderIOEither[C, error, R]] into a function with 9 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize9 [ F ~ func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) ( R , error ) {
return G . Uneitherize9 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 ) ( R , error ) ] ( f )
}
2023-07-18 15:24:00 +02:00
// From10 converts a function with 11 parameters returning a tuple into a function with 10 parameters returning a [ReaderIOEither[R]]
// The first parameter is considered to be the context [C].
func From10 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) func ( ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . From10 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
// Eitherize10 converts a function with 11 parameters returning a tuple into a function with 10 parameters returning a [ReaderIOEither[C, error, R]]
// The first parameter is considered to be the context [C].
func Eitherize10 [ F ~ func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) ( R , error ) , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , C , R any ] ( f F ) func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) ReaderIOEither [ C , error , R ] {
2023-10-24 12:27:10 +02:00
return G . Eitherize10 [ ReaderIOEither [ C , error , R ] ] ( f )
2023-07-18 15:24:00 +02:00
}
2024-05-24 21:43:36 +02:00
// Uneitherize10 converts a function with 11 parameters returning a [ReaderIOEither[C, error, R]] into a function with 10 parameters returning a tuple.
// The first parameter is considered to be the context [C].
func Uneitherize10 [ F ~ func ( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) ReaderIOEither [ C , error , R ] , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , C , R any ] ( f F ) func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) ( R , error ) {
return G . Uneitherize10 [ ReaderIOEither [ C , error , R ] , func ( C , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 ) ( R , error ) ] ( f )
}