1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

doc: add doc for Xnor and Nand in function package

This commit is contained in:
dudaodong
2024-02-26 10:10:37 +08:00
parent 0b1dab0399
commit 4a539a23c8
3 changed files with 153 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ func And[T any](predicates ...func(T) bool) func(T) bool {
}
}
// And returns a composed predicate that represents the logical NAND of a list of predicates.
// Nand returns a composed predicate that represents the logical NAND of a list of predicates.
// It evaluates to true only if all predicates evaluate to false for the given value.
func Nand[T any](predicates ...func(T) bool) func(T) bool {
if len(predicates) < 2 {