[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 0912aa2 048/426: Rename !uniq to !distinct
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 0912aa2 048/426: Rename !uniq to !distinct |
Date: |
Tue, 04 Aug 2015 19:36:37 +0000 |
branch: externals/dash
commit 0912aa299e22b4675826c2aa640367d7c531f0c0
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Rename !uniq to !distinct
- matches clojure
---
README.md | 8 ++++----
bang.el | 2 +-
examples.el | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index d8c371e..3651055 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ This is so much a work in progress that you should definitely
not be using it ye
* [!partial](#partial-fn-rest-args) `(fn &rest args)`
* [!difference](#difference-list-list2) `(list list2)`
* [!intersection](#intersection-list-list2) `(list list2)`
-* [!uniq](#uniq-list) `(list)`
+* [!distinct](#distinct-list) `(list)`
* [!contains?](#contains-list-element) `(list element)`
There are also anaphoric versions of these functions where that makes sense,
@@ -171,15 +171,15 @@ or with `!compare-fn` if that's non-nil.
(!intersection '(1 2 3 4) '(3 4 5 6)) ;; => '(3 4)
```
-### !uniq `(list)`
+### !distinct `(list)`
Return a new list with all duplicates removed.
The test for equality is done with `equal`,
or with `!compare-fn` if that's non-nil.
```cl
-(!uniq 'nil) ;; => 'nil
-(!uniq '(1 2 2 4)) ;; => '(1 2 4)
+(!distinct 'nil) ;; => 'nil
+(!distinct '(1 2 2 4)) ;; => '(1 2 4)
```
### !contains? `(list element)`
diff --git a/bang.el b/bang.el
index 7ac0a40..7c1478a 100644
--- a/bang.el
+++ b/bang.el
@@ -126,7 +126,7 @@ When called, the returned function calls FN with ARGS +
additional args."
(apply 'apply-partially fn args))
-(defun !uniq (list)
+(defun !distinct (list)
"Return a new list with all duplicates removed.
The test for equality is done with `equal',
or with `!compare-fn' if that's non-nil."
diff --git a/examples.el b/examples.el
index addad95..79c23c3 100644
--- a/examples.el
+++ b/examples.el
@@ -65,9 +65,9 @@
(!intersection '(1 2 3) '(4 5 6)) => '()
(!intersection '(1 2 3 4) '(3 4 5 6)) => '(3 4))
-(defexamples !uniq
- (!uniq '()) => '()
- (!uniq '(1 2 2 4)) => '(1 2 4))
+(defexamples !distinct
+ (!distinct '()) => '()
+ (!distinct '(1 2 2 4)) => '(1 2 4))
(defexamples !contains?
(!contains? '(1 2 3) 1) => t
- [elpa] externals/dash 4cc4147 035/426: Fix typo, (continued)
- [elpa] externals/dash 4cc4147 035/426: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash eea3c53 045/426: Move function list above anaphoric function description., Phillip Lord, 2015/08/04
- [elpa] externals/dash e7d5c01 043/426: Add note about README being autogenerated to Development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6c39876 003/426: Set up test framework with one basic test, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2a9e600 046/426: Make functions paragraph into a list of links, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5f6ea16 036/426: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1b0d54f 044/426: Simplify readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 26113a1 041/426: Add pre-commit.sh that runs tests and updates readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 78fc2a3 038/426: Quote and downcase params with digits in them too., Phillip Lord, 2015/08/04
- [elpa] externals/dash 32053cd 042/426: Update readme with development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash 0912aa2 048/426: Rename !uniq to !distinct,
Phillip Lord <=
- [elpa] externals/dash 24262a1 054/426: Add file-local font-lock for defexamples and =>, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9312469 053/426: !keep, Phillip Lord, 2015/08/04
- [elpa] externals/dash 657ee8b 040/426: Slight improvements to docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 286d1d8 050/426: Show quotes around strings in examples., Phillip Lord, 2015/08/04
- [elpa] externals/dash db8a745 056/426: Add !each, Phillip Lord, 2015/08/04
- [elpa] externals/dash f59b480 055/426: Add !some and !every?, Phillip Lord, 2015/08/04
- [elpa] externals/dash b337ef9 052/426: Sync examples-to-docs.el with the one in s.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2b89641 049/426: Remove needless duplication., Phillip Lord, 2015/08/04
- [elpa] externals/dash d83ea8a 061/426: Add installation instructions., Phillip Lord, 2015/08/04
- [elpa] externals/dash e1a362c 047/426: Update README to reflect changes in readme generation., Phillip Lord, 2015/08/04