[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 0bd26ac 096/426: Add aliases for -p instead of ?
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 0bd26ac 096/426: Add aliases for -p instead of ? |
Date: |
Tue, 04 Aug 2015 19:36:57 +0000 |
branch: externals/dash
commit 0bd26ac92de4df638aee4344bde2f3d2d0cbc65e
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Add aliases for -p instead of ?
---
dash.el | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dash.el b/dash.el
index eb27790..e6ad781 100644
--- a/dash.el
+++ b/dash.el
@@ -183,6 +183,11 @@ Alias: `-some?'"
(defalias '-some? '-any?)
(defalias '--some? '--any?)
+(defalias '-any-p '-any?)
+(defalias '--any-p '--any?)
+(defalias '-some-p '-any?)
+(defalias '--some-p '--any?)
+
(defmacro --all? (form list)
"Anaphoric form of `-all?'."
(let ((l (make-symbol "list"))
@@ -204,6 +209,11 @@ Alias: `-every?'"
(defalias '-every? '-all?)
(defalias '--every? '--all?)
+(defalias '-all-p '-all?)
+(defalias '--all-p '--all?)
+(defalias '-every-p '-all?)
+(defalias '--every-p '--all?)
+
(defmacro --none? (form list)
"Anaphoric form `-none?'."
`(--all? (not ,form) ,list))
@@ -212,6 +222,9 @@ Alias: `-every?'"
"Returns t if (FN x) is nil for all x in LIST, else nil."
(--none? (funcall fn it) list))
+(defalias '-none-p '-none?)
+(defalias '--none-p '--none?)
+
(defmacro --each (list form)
"Anaphoric form of `-each'."
(let ((l (make-symbol "list")))
@@ -416,5 +429,7 @@ or with `-compare-fn' if that's non-nil."
(setq lst (cdr lst)))
lst))))))
+(defalias '-contains-p '-contains?)
+
(provide 'dash)
;;; dash.el ends here
- [elpa] externals/dash 38cc9e7 088/426: Simplify -interleave with -none?, (continued)
- [elpa] externals/dash 38cc9e7 088/426: Simplify -interleave with -none?, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9ff9fd0 085/426: Move functions that are not strictly list related last., Phillip Lord, 2015/08/04
- [elpa] externals/dash 0c55a4b 090/426: 1.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4b5e24b 087/426: Docs: move -any? -all? -none? and -each up., Phillip Lord, 2015/08/04
- [elpa] externals/dash f8d74ff 091/426: Docs: update example text to match example code., Phillip Lord, 2015/08/04
- [elpa] externals/dash eacb6f2 092/426: Docs: Better generation of github urls., Phillip Lord, 2015/08/04
- [elpa] externals/dash 8c75026 080/426: Add !drop, Phillip Lord, 2015/08/04
- [elpa] externals/dash a2941cd 097/426: Typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash b9b6330 079/426: Add !take, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6931d8a 094/426: Remove Melpa from installation while waiting for it to be included., Phillip Lord, 2015/08/04
- [elpa] externals/dash 0bd26ac 096/426: Add aliases for -p instead of ?,
Phillip Lord <=
- [elpa] externals/dash 38eed45 095/426: Add rainbow-dash, Phillip Lord, 2015/08/04
- [elpa] externals/dash dc6f46c 098/426: Simplify docs-generation using dash., Phillip Lord, 2015/08/04
- [elpa] externals/dash b0da7b2 093/426: Declare macros before using them., Phillip Lord, 2015/08/04
- [elpa] externals/dash 4fedd2e 099/426: Add -partition and -partition-all, Phillip Lord, 2015/08/04
- [elpa] externals/dash 79b56cc 101/426: Use --each, !cons and !cdr to simplify implementations., Phillip Lord, 2015/08/04
- [elpa] externals/dash a08fc14 102/426: Add -each-while, Phillip Lord, 2015/08/04
- [elpa] externals/dash 49512b9 107/426: Simplify -take and -drop with --dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash ed47814 105/426: Add -dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash eb50d17 106/426: Add Melpa back in., Phillip Lord, 2015/08/04
- [elpa] externals/dash 0e5c69b 089/426: Docs: more concise example for anaphoric functions., Phillip Lord, 2015/08/04