1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-23 22:14:53 +02:00

fix: serveral performance improvements

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-18 10:58:24 +01:00
parent 8a2e9539b1
commit 909d626019
49 changed files with 3321 additions and 337 deletions

View File

@@ -21,3 +21,7 @@ import (
// Monoid is the monoid implementing string concatenation
var Monoid = M.MakeMonoid(concat, "")
func IntersperseMonoid(middle string) M.Monoid[string] {
return M.MakeMonoid(Intersperse(middle), "")
}