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

fix: support go iterators and cleanup types

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-14 12:56:12 +01:00
parent 17eb8ae66f
commit 2c1d8196b4
52 changed files with 1869 additions and 215 deletions

View File

@@ -40,10 +40,10 @@ var (
Equals = F.Curry2(Eq)
// Includes returns a predicate that tests for the existence of the search string
Includes = F.Curry2(F.Swap(strings.Contains))
Includes = F.Bind2of2(strings.Contains)
// HasPrefix returns a predicate that checks if the prefis is included in the string
HasPrefix = F.Curry2(F.Swap(strings.HasPrefix))
HasPrefix = F.Bind2of2(strings.HasPrefix)
)
func Eq(left string, right string) bool {