emacs-elpa-diffs
[Top][All Lists]
Advanced

[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!
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]