[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 98a82ca 142/439: DRY up -repeat with --dotimes
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 98a82ca 142/439: DRY up -repeat with --dotimes |
Date: |
Tue, 04 Aug 2015 20:27:16 +0000 |
branch: externals/dash
commit 98a82caea2341ebe88579743611086287747224e
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
DRY up -repeat with --dotimes
---
dash.el | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dash.el b/dash.el
index 540aff1..715add3 100644
--- a/dash.el
+++ b/dash.el
@@ -593,8 +593,7 @@ or with `-compare-fn' if that's non-nil."
"Return a list with X repeated N times.
Returns nil if N is less than 1."
(let ((ret nil))
- (while (not (minusp (setq n (1- n))))
- (!cons x ret))
+ (--dotimes n (!cons x ret))
ret))
(eval-after-load "lisp-mode"
- [elpa] externals/dash 467dfa7 133/439: Add -map-indexed, (continued)
- [elpa] externals/dash 467dfa7 133/439: Add -map-indexed, Phillip Lord, 2015/08/04
- [elpa] externals/dash 85bd4e0 131/439: Add @tali713's -applify, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7e4ee06 135/439: 1.0.3, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1284bc6 134/439: Move .el files out of root., Phillip Lord, 2015/08/04
- [elpa] externals/dash 1120417 127/439: Add -group-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1c4e5d7 125/439: Remove eval from --reduce, it is evil., Phillip Lord, 2015/08/04
- [elpa] externals/dash 3044e83 129/439: Merge pull request #8 from tkf/group-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 78390f6 139/439: Merge pull request #12 from vemv/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0731333 140/439: Add @vemv to list of contributors, Phillip Lord, 2015/08/04
- [elpa] externals/dash 002e4cd 132/439: Add tali713 to list of contributors., Phillip Lord, 2015/08/04
- [elpa] externals/dash 98a82ca 142/439: DRY up -repeat with --dotimes,
Phillip Lord <=
- [elpa] externals/dash 8fe15ed 141/439: Group -repeat with -dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash e4521af 136/439: Add -repeat, Phillip Lord, 2015/08/04
- [elpa] externals/dash e083087 145/439: Merge pull request #13 from nicferrier/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 50e9f46 144/439: -cons* for making improper lists., Phillip Lord, 2015/08/04
- [elpa] externals/dash a196ac1 137/439: Fix -repeat, Phillip Lord, 2015/08/04
- [elpa] externals/dash da8dc62 138/439: Preserve newline at new-keywords, Phillip Lord, 2015/08/04
- [elpa] externals/dash fb75a7f 146/439: Add @nicferrier to list of contributors., Phillip Lord, 2015/08/04
- [elpa] externals/dash 5161361 148/439: Clarify use of anaphoric form of -zip-with, Phillip Lord, 2015/08/04
- [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