[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash e4521af 136/426: Add -repeat
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash e4521af 136/426: Add -repeat |
Date: |
Tue, 04 Aug 2015 19:37:13 +0000 |
branch: externals/dash
commit e4521af66729346c7356a983beced55903095a87
Author: vemv <address@hidden>
Commit: vemv <address@hidden>
Add -repeat
---
dash.el | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dash.el b/dash.el
index 2eebff8..b1b5896f 100644
--- a/dash.el
+++ b/dash.el
@@ -587,6 +587,13 @@ or with `-compare-fn' if that's non-nil."
(setq lst (cdr lst)))
lst))))))
+(defun -repeat (n x)
+ "Return a list of N Xs."
+ (let ((ret nil))
+ (loop for i from 0 to (dec n) do
+ (setq ret (cons x ret)))
+ ret))
+
(defalias '-contains-p '-contains?)
(eval-after-load "lisp-mode"
- [elpa] externals/dash 8f91ec8 126/426: 1.0.2, (continued)
- [elpa] externals/dash 8f91ec8 126/426: 1.0.2, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1120417 127/426: Add -group-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5e72ff9 120/426: Include numbers in github ids., Phillip Lord, 2015/08/04
- [elpa] externals/dash a23aa4b 128/426: Add examples for -group-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 7f7ac33 130/426: Add Takafumi Arakaki to list of contributors., Phillip Lord, 2015/08/04
- [elpa] externals/dash 3044e83 129/426: Merge pull request #8 from tkf/group-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 85bd4e0 131/426: Add @tali713's -applify, Phillip Lord, 2015/08/04
- [elpa] externals/dash e9de223 116/426: Rename -replace-where to -map-when, Phillip Lord, 2015/08/04
- [elpa] externals/dash 002e4cd 132/426: Add tali713 to list of contributors., Phillip Lord, 2015/08/04
- [elpa] externals/dash 7e4ee06 135/426: 1.0.3, Phillip Lord, 2015/08/04
- [elpa] externals/dash e4521af 136/426: Add -repeat,
Phillip Lord <=
- [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, 2015/08/04
- [elpa] externals/dash 50e9f46 144/426: -cons* for making improper lists., Phillip Lord, 2015/08/04