[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 98a82ca 142/426: DRY up -repeat with --dotimes
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 98a82ca 142/426: DRY up -repeat with --dotimes |
Date: |
Tue, 04 Aug 2015 19:37: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 7e4ee06 135/426: 1.0.3, (continued)
- [elpa] externals/dash 7e4ee06 135/426: 1.0.3, Phillip Lord, 2015/08/04
- [elpa] externals/dash e4521af 136/426: Add -repeat, Phillip Lord, 2015/08/04
- [elpa] externals/dash 69e054e 124/426: Switch around order of Contribute and Contributors parts in readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 78390f6 139/426: Merge pull request #12 from vemv/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1284bc6 134/426: Move .el files out of root., Phillip Lord, 2015/08/04
- [elpa] externals/dash da8dc62 138/426: Preserve newline at new-keywords, Phillip Lord, 2015/08/04
- [elpa] externals/dash 467dfa7 133/426: Add -map-indexed, Phillip Lord, 2015/08/04
- [elpa] externals/dash a196ac1 137/426: Fix -repeat, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9c5fbc5 143/426: nil is the default binding in let forms, Phillip Lord, 2015/08/04
- [elpa] externals/dash 8fe15ed 141/426: Group -repeat with -dotimes, Phillip Lord, 2015/08/04
- [elpa] externals/dash 98a82ca 142/426: DRY up -repeat with --dotimes,
Phillip Lord <=
- [elpa] externals/dash 50e9f46 144/426: -cons* for making improper lists., Phillip Lord, 2015/08/04
- [elpa] externals/dash e083087 145/426: Merge pull request #13 from nicferrier/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5161361 148/426: Clarify use of anaphoric form of -zip-with, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0731333 140/426: Add @vemv to list of contributors, Phillip Lord, 2015/08/04
- [elpa] externals/dash a7ee06e 149/426: Remove extra --separate definition, Phillip Lord, 2015/08/04
- [elpa] externals/dash 3f604cd 151/426: Add -count, Phillip Lord, 2015/08/04
- [elpa] externals/dash fb75a7f 146/426: Add @nicferrier to list of contributors., Phillip Lord, 2015/08/04
- [elpa] externals/dash cc33c2f 153/426: Stop integration tests for Emacs 23, Phillip Lord, 2015/08/04
- [elpa] externals/dash adfafcb 152/426: Add -partition-by-header, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0351ca3 156/426: Add Wilfred Hughes to list of contributors., Phillip Lord, 2015/08/04