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

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

[elpa] externals/dash 524e6fe 057/316: Fix -map-last docs (#220)


From: ELPA Syncer
Subject: [elpa] externals/dash 524e6fe 057/316: Fix -map-last docs (#220)
Date: Mon, 15 Feb 2021 15:57:25 -0500 (EST)

branch: externals/dash
commit 524e6fe86ba240d4405d3de1c862921fb8085c8d
Author: Adam Niederer <AdamNiederer@users.noreply.github.com>
Commit: Matus Goljer <dota.keys@gmail.com>

    Fix -map-last docs (#220)
---
 README.md | 2 +-
 dash.el   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index ad03d06..8e255d7 100644
--- a/README.md
+++ b/README.md
@@ -355,7 +355,7 @@ See also: [`-map-when`](#-map-when-pred-rep-list), 
[`-replace-first`](#-replace-
 
 #### -map-last `(pred rep list)`
 
-Replace first item in `list` satisfying `pred` with result of `rep` called on 
this item.
+Replace last item in `list` satisfying `pred` with result of `rep` called on 
this item.
 
 See also: [`-map-when`](#-map-when-pred-rep-list), 
[`-replace-last`](#-replace-last-old-new-list)
 
diff --git a/dash.el b/dash.el
index 078175c..10b1f05 100644
--- a/dash.el
+++ b/dash.el
@@ -388,7 +388,7 @@ See also: `-map-when', `-replace-first'"
   `(-map-first (lambda (it) ,pred) (lambda (it) (ignore it) ,rep) ,list))
 
 (defun -map-last (pred rep list)
-  "Replace first item in LIST satisfying PRED with result of REP called on 
this item.
+  "Replace last item in LIST satisfying PRED with result of REP called on this 
item.
 
 See also: `-map-when', `-replace-last'"
   (nreverse (-map-first pred rep (reverse list))))



reply via email to

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