v0.0.623
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m46s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m46s
This commit is contained in:
7
langext/func.go
Normal file
7
langext/func.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package langext
|
||||
|
||||
func FuncChain[T any](v1 func(T) T, v2 func(T) T) func(T) T {
|
||||
return func(t T) T {
|
||||
return v2(v1(t))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user