emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash 5161361 148/426: Clarify use of anaphoric form of


From: Phillip Lord
Subject: [elpa] externals/dash 5161361 148/426: Clarify use of anaphoric form of -zip-with
Date: Tue, 04 Aug 2015 19:37:20 +0000

branch: externals/dash
commit 5161361ffceda878ab0eda7a0192d277a32aaef8
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Clarify use of anaphoric form of -zip-with
---
 README.md |    3 +++
 dash.el   |    5 ++++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index 951e5bc..0c392c6 100644
--- a/README.md
+++ b/README.md
@@ -456,6 +456,9 @@ function is applied pairwise taking as first argument 
element of
 `list1` and as second argument element of `list2` at corresponding
 position.
 
+The anaphoric form `--zip-with` binds the elements from `list1` as `it`,
+and the elements from `list2` as `other`.
+
 ```cl
 (-zip-with '+ '(1 2 3) '(4 5 6)) ;; => '(5 7 9)
 (-zip-with 'cons '(1 2 3) '(4 5 6)) ;; => '((1 . 4) (2 . 5) (3 . 6))
diff --git a/dash.el b/dash.el
index b9ae7d6..483170d 100644
--- a/dash.el
+++ b/dash.el
@@ -520,7 +520,10 @@ The elements in list1 is bound as `it`, the elements in 
list2 as `other`."
   "Zip the two lists LIST1 and LIST2 using a function FN.  This
 function is applied pairwise taking as first argument element of
 LIST1 and as second argument element of LIST2 at corresponding
-position."
+position.
+
+The anaphoric form `--zip-with' binds the elements from LIST1 as `it`,
+and the elements from LIST2 as `other`."
   (--zip-with (funcall fn it other) list1 list2))
 
 (defun -zip (list1 list2)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]