Documentation
¶
Index ¶
- Variables
- func Eq(left, right string) bool
- func Format[T any](format string) func(T) string
- func Intersperse(middle string) func(string, string) string
- func IntersperseMonoid(middle string) M.Monoid[string]
- func IntersperseSemigroup(middle string) S.Semigroup[string]
- func IsEmpty(s string) bool
- func IsNonEmpty(s string) bool
- func Size(s string) int
- func ToBytes(s string) []byte
- func ToRunes(s string) []rune
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ToUpperCase converts the string to uppercase ToUpperCase = strings.ToUpper // ToLowerCase converts the string to lowercase ToLowerCase = strings.ToLower // Ord implements the default ordering for strings Ord = ord.FromStrictCompare[string]() // Join joins strings Join = F.Curry2(F.Bind2nd[[]string, string, string])(strings.Join) // Equals returns a predicate that tests if a string is equal Equals = F.Curry2(Eq) // Includes returns a predicate that tests for the existence of the search string Includes = F.Bind2of2(strings.Contains) // HasPrefix returns a predicate that checks if the prefis is included in the string HasPrefix = F.Bind2of2(strings.HasPrefix) )
View Source
var Monoid = M.MakeMonoid(concat, "")
Monoid is the monoid implementing string concatenation
View Source
var Semigroup = S.MakeSemigroup(concat)
Functions ¶
func IsNonEmpty ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.