1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-25 22:21:49 +02:00

fix: add go 1.25 to build matrix

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-06 09:43:27 +01:00
parent 77745c1348
commit d0c5f32111
4 changed files with 9 additions and 11 deletions

View File

@@ -161,6 +161,10 @@ func reduceRef[A, B any](fa []A, f func(B, *A) B, initial B) B {
return current
}
func MonadReduce[A, B any](fa []A, f func(B, A) B, initial B) B {
return G.MonadReduce(fa, f, initial)
}
// Reduce folds an array from left to right, applying a function to accumulate a result.
//
// Example: