[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 4a144c6 220/439: Release 2.0.0
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 4a144c6 220/439: Release 2.0.0 |
Date: |
Tue, 04 Aug 2015 20:28:12 +0000 |
branch: externals/dash
commit 4a144c6515669dd406ed4f916e1a33c29f9bb5be
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Release 2.0.0
---
dash-pkg.el | 2 +-
dev/examples.el | 26 ++++++++++++++------------
readme-template.md | 27 +++++++++++++++++++--------
3 files changed, 34 insertions(+), 21 deletions(-)
diff --git a/dash-pkg.el b/dash-pkg.el
index 71dd0a7..540482a 100644
--- a/dash-pkg.el
+++ b/dash-pkg.el
@@ -1,5 +1,5 @@
(define-package
"dash"
- "1.8.0"
+ "2.0.0"
"A modern list library for Emacs."
'())
diff --git a/dev/examples.el b/dev/examples.el
index 55aaa8a..0e64612 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -114,24 +114,26 @@
(-min '(3 2 1)) => 1
(-min '(1 2 3)) => 1)
-(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)
+(unless (version< emacs-version "24") ;; required for -on
+ (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))
(defexamples -max
(-max '(0)) => 0
(-max '(3 2 1)) => 3
(-max '(1 2 3)) => 3)
-(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)
+(unless (version< emacs-version "24") ;; required for -on
+ (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))
(defexamples -any?
(-any? 'even? '(1 2 3)) => t
diff --git a/readme-template.md b/readme-template.md
index 2aaf776..db1ed5a 100644
--- a/readme-template.md
+++ b/readme-template.md
@@ -2,6 +2,21 @@
A modern list api for Emacs. No 'cl required.
+## Breaking change 1.8.0 -> 2.0.0
+
+- The `-min` and `-max` functions are no longer variadic, but take a
+ list to be more in line with the other dash functions.
+
+- The `-min-by` and `-max-by` now take a comparator function to sort by.
+
+Also: The stated scope of dash is increasing. It now includes more
+functional style functions, like combinators and threading macros.
+These have been creeping in anyway, since they're so darn useful. Time
+to make it official. :)
+
+These new combinators require Emacs 24 for its lexical scope. So
+you'll have to include them with `(require 'dash-functional)`.
+
## Installation
It's available on [marmalade](http://marmalade-repo.org/) and
[Melpa](http://melpa.milkbox.net/):
@@ -71,15 +86,11 @@ Change `readme-template.md` or `examples-to-docs.el`
instead.
## Changelist
-### From 1.8.0 to master
-
-The stated scope of dash is increasing. It now includes more
-functional style functions, like combinators and threading macros.
-These have been creeping in anyway, since they're so darn useful. Time
-to make it official. :)
+### From 1.8.0 to 2.0.0
- Split out `dash-functional.el` (Matus Goljer)
- Add `-andfn`, `-orfn`, `-not`, `-cut`, `-const`, `-flip` and `-on`. (Matus
Goljer)
+- Fix `-min`, `-max`, `-min-by` and `-max-by` (Matus Goljer)
### From 1.7.0 to 1.8.0
@@ -118,14 +129,14 @@ to make it official. :)
## Contributors
- - [Matus Goljer](https://github.com/Fuco1) contributed `-union`, `-separate`,
`-zip`, `-zip-with`, `-reduce-r`, `-reduce-r-from` and `-rotate`.
+ - [Matus Goljer](https://github.com/Fuco1) contributed lots of features and
functions.
- [Takafumi Arakaki](https://github.com/tkf) contributed `-group-by`.
- [tali713](https://github.com/tali713) is the author of `-applify`.
- [VĂctor M. Valenzuela](https://github.com/vemv) contributed `-repeat`.
- [Nic Ferrier](https://github.com/nicferrier) contributed `-cons*`.
- [Wilfred Hughes](https://github.com/Wilfred) contributed `-slice`,
`-first-item` and `-last-item`.
- [Emanuel Evans](https://github.com/shosti) contributed `-if-let`,
`-when-let` and `-insert-at`.
- - [Johan Andersson](https://github.com/rejeep) contributed `-sum`,
`-product`, `-min`, `-max`, `-min-by` and `-max-by`.
+ - [Johan Andersson](https://github.com/rejeep) contributed `-sum` and
`-product`.
Thanks!
- [elpa] externals/dash 506401e 203/439: Merge pull request #39 from Fuco1/rotate, (continued)
- [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, 2015/08/04
- [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 <=
- [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
- [elpa] externals/dash 39d20f2 228/439: Release 2.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 81e43ad 229/439: Add -union to list of highlighted symbols., Phillip Lord, 2015/08/04
- [elpa] externals/dash 515e2d3 230/439: Use `comparator` instead of `predicate` for sort., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6cc7727 234/439: Release 2.1.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6eeb692 236/439: Provide an implementation of function composition., Phillip Lord, 2015/08/04