predarrays

package
v0.0.0-...-83fde48 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package predarrays provides generic slice-length predicates built with fp-go v2 combinators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNonEmpty

func IsNonEmpty[E any]() Pred.Predicate[[]E]

IsNonEmpty returns a Predicate[[]E] that is true when len(s) > 0.

func LenEq

func LenEq[E any](n int) Pred.Predicate[[]E]

LenEq returns a Predicate[[]E] that is true when len(s) == n.

func MaxLen

func MaxLen[E any](n int) Pred.Predicate[[]E]

MaxLen returns a Predicate[[]E] that is true when len(s) <= n.

func MinLen

func MinLen[E any](n int) Pred.Predicate[[]E]

MinLen returns a Predicate[[]E] that is true when len(s) >= n.

Types

This section is empty.

Jump to

Keyboard shortcuts

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