[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash e680ad0 015/316: Merge pull request #173 from Wilf
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash e680ad0 015/316: Merge pull request #173 from Wilfred/master |
Date: |
Mon, 15 Feb 2021 15:57:15 -0500 (EST) |
branch: externals/dash
commit e680ad0fdbc18b65fed9a56d3ba0cb04c10d4878
Merge: 8a46d3c 6ded2f2
Author: Matus Goljer <dota.keys@gmail.com>
Commit: Matus Goljer <dota.keys@gmail.com>
Merge pull request #173 from Wilfred/master
Add 'see also' to `-find-index` and `-find-last-index`.
---
README.md | 6 ++++++
dash.el | 8 ++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index c2f4a39..453b5ab 100644
--- a/README.md
+++ b/README.md
@@ -442,6 +442,8 @@ Return a new list of the items in `list` for which `pred`
returns a non-nil valu
Alias: `-select`
+See also: [`-keep`](#-keep-fn-list)
+
```el
(-filter (lambda (num) (= 0 (% num 2))) '(1 2 3 4)) ;; => '(2 4)
(-filter 'even? '(1 2 3 4)) ;; => '(2 4)
@@ -1237,6 +1239,8 @@ Take a predicate `pred` and a `list` and return the index
of the
first element in the list satisfying the predicate, or nil if
there is no such element.
+See also [`-first`](#-first-pred-list).
+
```el
(-find-index 'even? '(2 4 1 6 3 3 5 8)) ;; => 0
(--find-index (< 5 it) '(2 4 1 6 3 3 5 8)) ;; => 3
@@ -1249,6 +1253,8 @@ Take a predicate `pred` and a `list` and return the index
of the
last element in the list satisfying the predicate, or nil if
there is no such element.
+See also [`-last`](#-last-pred-list).
+
```el
(-find-last-index 'even? '(2 4 1 6 3 3 5 8)) ;; => 7
(--find-last-index (< 5 it) '(2 7 1 6 3 8 5 2)) ;; => 5
diff --git a/dash.el b/dash.el
index 5f9f840..b799b44 100644
--- a/dash.el
+++ b/dash.el
@@ -1159,7 +1159,9 @@ predicate PRED, in ascending order."
(defun -find-index (pred list)
"Take a predicate PRED and a LIST and return the index of the
first element in the list satisfying the predicate, or nil if
-there is no such element."
+there is no such element.
+
+See also `-first'."
(car (-find-indices pred list)))
(defmacro --find-index (form list)
@@ -1170,7 +1172,9 @@ there is no such element."
(defun -find-last-index (pred list)
"Take a predicate PRED and a LIST and return the index of the
last element in the list satisfying the predicate, or nil if
-there is no such element."
+there is no such element.
+
+See also `-last'."
(-last-item (-find-indices pred list)))
(defmacro --find-last-index (form list)
- [elpa] externals/dash 096f244 018/316: --remove-last does not modify input list #158, (continued)
- [elpa] externals/dash 096f244 018/316: --remove-last does not modify input list #158, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3e7163a 020/316: [#99] Use butlast to implement -butlast, ELPA Syncer, 2021/02/15
- [elpa] externals/dash eef3bb0 023/316: Document -doto macro in the README (#181), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 7cc0149 021/316: [#99] Add -take-last and -drop-last, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6d8abc7 022/316: Add -doto macro (like Clojure's doto) (#177), ELPA Syncer, 2021/02/15
- [elpa] externals/dash f1c60c4 034/316: Merge pull request #193 from GuiltyDolphin/fix-map-when-typo, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 15f384d 025/316: Copyedit: argument name consistency (#187), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 937f8a1 026/316: Update documentation, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 012b3bc 024/316: Docstrings grammar fixes (#186), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6ded2f2 014/316: Add 'see also' to `-find-index` and `-find-last-index`., ELPA Syncer, 2021/02/15
- [elpa] externals/dash e680ad0 015/316: Merge pull request #173 from Wilfred/master,
ELPA Syncer <=
- [elpa] externals/dash a10fb6b 028/316: Add -each-indexed keyword to font-lock, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 502be58 029/316: Make -each-indexed indent like -each, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4ae329a 032/316: Release 2.13.0, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0100584 033/316: Correct typo of 'does' to 'do' in -map-when docs, ELPA Syncer, 2021/02/15
- [elpa] externals/dash b7ba212 036/316: Edebug support for threading macros (#188), ELPA Syncer, 2021/02/15
- [elpa] externals/dash d4bccfe 037/316: Add annotations to pure functions. (#199), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 4b805e1 041/316: Update README, ELPA Syncer, 2021/02/15
- [elpa] externals/dash bcc74b5 045/316: [#200] Define setters for -first-item and -last-item, ELPA Syncer, 2021/02/15
- [elpa] externals/dash a9f90d7 016/316: Add -select-column(s), ELPA Syncer, 2021/02/15
- [elpa] externals/dash 27b1ea5 030/316: Update changelog for 2.12.x., ELPA Syncer, 2021/02/15