branch: externals/dash commit 012b3bca9fef526bfe8aac73763e2c0b9622e1da Author: Andriy Kmit <d...@madand.net> Commit: Matus Goljer <dota.k...@gmail.com>
Docstrings grammar fixes (#186) --- dash-functional.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dash-functional.el b/dash-functional.el index 813480d..bed5990 100644 --- a/dash-functional.el +++ b/dash-functional.el @@ -99,13 +99,13 @@ See SRFI-26 for detailed description." ,(--map (if (eq it '<>) (pop args) it) params)))) (defun -not (pred) - "Take an unary predicates PRED and return an unary predicate + "Take a unary predicate PRED and return a unary predicate that returns t if PRED returns nil and nil if PRED returns non-nil." (lambda (x) (not (funcall pred x)))) (defun -orfn (&rest preds) - "Take list of unary predicates PREDS and return an unary + "Take list of unary predicates PREDS and return a unary predicate with argument x that returns non-nil if at least one of the PREDS returns non-nil on x. @@ -113,7 +113,7 @@ In types: [a -> Bool] -> a -> Bool" (lambda (x) (-any? (-cut funcall <> x) preds))) (defun -andfn (&rest preds) - "Take list of unary predicates PREDS and return an unary + "Take list of unary predicates PREDS and return a unary predicate with argument x that returns non-nil if all of the PREDS returns non-nil on x. @@ -124,7 +124,7 @@ In types: [a -> Bool] -> a -> Bool" "Return a function FN composed N times with itself. FN is a unary function. If you need to use a function of higher -arity, use `-applify' first to turn it into an unary function. +arity, use `-applify' first to turn it into a unary function. With n = 0, this acts as identity function.