[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 0351ca3 156/439: Add Wilfred Hughes to list of con
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 0351ca3 156/439: Add Wilfred Hughes to list of contributors. |
Date: |
Tue, 04 Aug 2015 20:27:23 +0000 |
branch: externals/dash
commit 0351ca360137fe411c8704431418c94dbdb814cc
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Add Wilfred Hughes to list of contributors.
---
README.md | 13 +++++++++++++
readme-template.md | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
index 8e2680d..845ab17 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,7 @@ Or you can just dump `dash.el` in your load path somewhere.
* [-each-while](#-each-while-list-pred-fn) `(list pred fn)`
* [-dotimes](#-dotimes-num-fn) `(num fn)`
* [-repeat](#-repeat-n-x) `(n x)`
+* [-slice](#-slice-list-from-optional-to) `(list from &optional to)`
* [-take](#-take-n-list) `(n list)`
* [-drop](#-drop-n-list) `(n list)`
* [-take-while](#-take-while-pred-list) `(pred list)`
@@ -329,6 +330,17 @@ Returns nil if `n` is less than 1.
(-repeat 0 :a) ;; => nil
```
+### -slice `(list from &optional to)`
+
+Return copy of `list`, starting from index `from` to index `to`.
+`from` or `to` may be negative.
+
+```cl
+(-slice '(1 2 3 4 5) 1) ;; => '(2 3 4 5)
+(-slice '(1 2 3 4 5) 0 3) ;; => '(1 2 3)
+(-slice '(1 2 3 4 5) 1 -1) ;; => '(2 3 4)
+```
+
### -take `(n list)`
Returns a new list of the first `n` items in `list`, or all items if there are
fewer than `n`.
@@ -702,6 +714,7 @@ Change `readme-template.md` or `examples-to-docs.el`
instead.
- [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`.
Thanks!
diff --git a/readme-template.md b/readme-template.md
index 6a60fb7..b07a9e4 100644
--- a/readme-template.md
+++ b/readme-template.md
@@ -76,6 +76,7 @@ Change `readme-template.md` or `examples-to-docs.el` instead.
- [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`.
Thanks!
- [elpa] externals/dash a7ee06e 149/439: Remove extra --separate definition, (continued)
- [elpa] externals/dash a7ee06e 149/439: Remove extra --separate definition, Phillip Lord, 2015/08/04
- [elpa] externals/dash f7a828f 147/439: Add -zip and -zip-with, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9c5fbc5 143/439: nil is the default binding in let forms, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3f604cd 151/439: Add -count, Phillip Lord, 2015/08/04
- [elpa] externals/dash cc33c2f 153/439: Stop integration tests for Emacs 23, Phillip Lord, 2015/08/04
- [elpa] externals/dash c218e9f 150/439: -split-at/with now makes just one pass over list, Phillip Lord, 2015/08/04
- [elpa] externals/dash adfafcb 152/439: Add -partition-by-header, Phillip Lord, 2015/08/04
- [elpa] externals/dash a4b70f9 154/439: [magnars/dash.el#18] implementing -slice, Phillip Lord, 2015/08/04
- [elpa] externals/dash dac28b0 155/439: Merge pull request #19 from Wilfred/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash bd942e1 158/439: inhibit dev from being added to the load-path, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0351ca3 156/439: Add Wilfred Hughes to list of contributors.,
Phillip Lord <=
- [elpa] externals/dash 2451f99 159/439: Merge pull request #20 from tarsius/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6ffdc93 157/439: Release 1.1.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash a559a80 161/439: Added -last, Phillip Lord, 2015/08/04
- [elpa] externals/dash a40fc00 162/439: Merge pull request #23 from Fuco1/last, Phillip Lord, 2015/08/04
- [elpa] externals/dash d7174ed 160/439: Handle cons-cells properly in -flatten, Phillip Lord, 2015/08/04
- [elpa] externals/dash a1b04d8 163/439: Less implementation specific docs for -mapcat, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9371ce4 164/439: Don't use the word collection when meaning list, Phillip Lord, 2015/08/04
- [elpa] externals/dash c3dc883 166/439: Merge pull request #26 from shosti/when-if-let, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6420bf8 167/439: Add Emanuel Evans to list of contributors, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1396102 165/439: Add -when-let and -if-let macros, Phillip Lord, 2015/08/04