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:
@@ -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), "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user