predstrings

package
v0.0.0-...-9c50dbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package predstrings provides predicates on strings, derived from curried stdlib string functions.

Index

Constants

This section is empty.

Variables

View Source
var (
	LastIndexOf       = F.Bind2of2(strings.LastIndex)
	HasSuffix         = F.Bind2of2(strings.HasSuffix)
	ContainsRuneClass = F.Bind2of2(strings.ContainsFunc)

	HasAtSign = F.Pipe2(
		0,
		ORD.Geq(predord.IntOrd),
		Pred.ContraMap(LastIndexOf("@")),
	)
)

Functions

func StrLenBetween

func StrLenBetween(first, second int) Pred.Predicate[string]

StrLenBetween whether len(s) is between first and second (inclusive)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL