[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 9a149bf 219/439: Add anaphoric example to --max-by
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 9a149bf 219/439: Add anaphoric example to --max-by and --min-by |
Date: |
Tue, 04 Aug 2015 20:28:12 +0000 |
branch: externals/dash
commit 9a149bf85acef70292b97ee6c8f860dcfb385795
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Add anaphoric example to --max-by and --min-by
---
dev/examples.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dev/examples.el b/dev/examples.el
index 8c750eb..55aaa8a 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -117,6 +117,7 @@
(defexamples -min-by
(-min-by '> '(4 3 6 1)) => 1
(-min-by (-on '> 'length) '((1 2 3) (1) (1 2))) => '(1)
+ (--min-by (> (length it) (length other)) '((1 2 3) (1) (1 2))) => '(1)
(-min-by (-on 'string-lessp 'int-to-string) '(2 100 22)) => 22
(-min-by '< '(4 3 6 1)) => 6)
@@ -128,6 +129,7 @@
(defexamples -max-by
(-max-by '> '(4 3 6 1)) => 6
(-max-by (-on '> 'car) '((2 2 3) (3) (1 2))) => '(3)
+ (--max-by (> (car it) (car other)) '((2 2 3) (3) (1 2))) => '(3)
(-max-by (-on '> 'string-to-int) '("1" "2" "3")) => "3"
(-max-by '< '(4 3 6 1)) => 1)
- [elpa] externals/dash 788573e 206/439: Merge pull request #36 from Wilfred/master, (continued)
- [elpa] externals/dash 788573e 206/439: Merge pull request #36 from Wilfred/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash b1cfe18 209/439: Fix incorrect alias checking in docs--signature, Phillip Lord, 2015/08/04
- [elpa] externals/dash 824fcb3 207/439: Release 1.8.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0db2f5a 208/439: Fix second example for -last/first-item, Phillip Lord, 2015/08/04
- [elpa] externals/dash d1913c6 210/439: Merge pull request #41 from Wilfred/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 506401e 203/439: Merge pull request #39 from Fuco1/rotate, Phillip Lord, 2015/08/04
- [elpa] externals/dash 37064b5 213/439: Include @Fuco1 in Authors/Copyright + fix README, Phillip Lord, 2015/08/04
- [elpa] externals/dash d6ca7d9 215/439: Fix E23 bug and re-enable E23 CI, Phillip Lord, 2015/08/04
- [elpa] externals/dash 51c9f6b 212/439: Merge pull request #42 from Fuco1/functional, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9abae5e 211/439: Add combinators, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9a149bf 219/439: Add anaphoric example to --max-by and --min-by,
Phillip Lord <=
- [elpa] externals/dash d374fcc 214/439: Revert "Add combinators", Phillip Lord, 2015/08/04
- [elpa] externals/dash 2a7fbdc 218/439: Update -max-by & friends, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6911514 221/439: Update docs too, Phillip Lord, 2015/08/04
- [elpa] externals/dash 86de963 217/439: Add docs about require for dash-functional, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4a144c6 220/439: Release 2.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9b0166a 224/439: Fix terminology, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6d0a8d6 225/439: Add Version and Package-Requires to files #45, Phillip Lord, 2015/08/04
- [elpa] externals/dash d365f22 222/439: Fix byte compile warnings, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1812a17 226/439: Complete dash and dash-functional split, Phillip Lord, 2015/08/04
- [elpa] externals/dash f1049f1 216/439: Add dash-functional back, now dependent on dash.el, Phillip Lord, 2015/08/04