package
0.19.0
Repository: https://github.com/booleancat/go-functional.git
Documentation: pkg.go.dev

# Functions

And returns a function that returns true when all provided functions return true.
GreaterThan returns a function that returns true when a value is greater than a threshold.
GreaterThanEqual returns a function that returns true when a value is greater than or equal to a threshold.
IsEven returns true when the provided integer is even.
IsOdd returns true when the provided integer is odd.
IsZero returns true when the provided value is equal to its zero value.
LessThan returns a function that returns true when a value is less than a threshold.
LessThanEqual returns a function that returns true when a value is less than or equal to a threshold.
Or returns a function that returns true when one of the provided functions returns true.