[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash a6323eb 059/439: Add some tests that verify that t
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash a6323eb 059/439: Add some tests that verify that the lists are evaled by the anaphoric macros. |
Date: |
Tue, 04 Aug 2015 20:26:23 +0000 |
branch: externals/dash
commit a6323eb7aafbf5c73e6fff61e5c8f370081abedd
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Add some tests that verify that the lists are evaled by the anaphoric
macros.
---
examples.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/examples.el b/examples.el
index 7930874..e0fcf9f 100644
--- a/examples.el
+++ b/examples.el
@@ -7,11 +7,13 @@
(defun even? (num) (= 0 (% num 2)))
(defun square (num) (* num num))
+(defun three-letters () '("A" "B" "C"))
(defexamples !map
(!map (lambda (num) (* num num)) '(1 2 3 4)) => '(1 4 9 16)
(!map 'square '(1 2 3 4)) => '(1 4 9 16)
- (!!map (* it it) '(1 2 3 4)) => '(1 4 9 16))
+ (!!map (* it it) '(1 2 3 4)) => '(1 4 9 16)
+ (!!map (concat it it) (three-letters)) => '("AA" "BB" "CC"))
(defexamples !reduce-from
(!reduce-from '+ 7 '(1 2)) => 10
@@ -99,4 +101,6 @@
(defexamples !each
(let (s) (!each '(1 2 3) (lambda (item) (setq s (cons item s))))) => nil
(let (s) (!each '(1 2 3) (lambda (item) (setq s (cons item s)))) s) => '(3 2
1)
- (let (s) (!!each '(1 2 3) (setq s (cons it s))) s) => '(3 2 1))
+ (let (s) (!!each '(1 2 3) (setq s (cons it s))) s) => '(3 2 1)
+ (let (s) (!!each (reverse (three-letters)) (setq s (cons it s))) s) => '("A"
"B" "C")
+)
- [elpa] externals/dash 0912aa2 048/439: Rename !uniq to !distinct, (continued)
- [elpa] externals/dash 0912aa2 048/439: Rename !uniq to !distinct, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9312469 053/439: !keep, Phillip Lord, 2015/08/04
- [elpa] externals/dash 286d1d8 050/439: Show quotes around strings in examples., Phillip Lord, 2015/08/04
- [elpa] externals/dash 24262a1 054/439: Add file-local font-lock for defexamples and =>, Phillip Lord, 2015/08/04
- [elpa] externals/dash f59b480 055/439: Add !some and !every?, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2b89641 049/439: Remove needless duplication., Phillip Lord, 2015/08/04
- [elpa] externals/dash b337ef9 052/439: Sync examples-to-docs.el with the one in s.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash db8a745 056/439: Add !each, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6be4c03 058/439: !first, Phillip Lord, 2015/08/04
- [elpa] externals/dash 0991c29 057/439: Added some common aliases, Phillip Lord, 2015/08/04
- [elpa] externals/dash a6323eb 059/439: Add some tests that verify that the lists are evaled by the anaphoric macros.,
Phillip Lord <=
- [elpa] externals/dash 70488c2 063/439: Add !rpartial, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1a7ad85 065/439: Mention Melpa in README, Phillip Lord, 2015/08/04
- [elpa] externals/dash d83ea8a 061/439: Add installation instructions., Phillip Lord, 2015/08/04
- [elpa] externals/dash 047eeea 066/439: Run tests on Emacs 24., Phillip Lord, 2015/08/04
- [elpa] externals/dash 5bd4593 067/439: Add note about !rpartial only working on Emacs 24+, Phillip Lord, 2015/08/04
- [elpa] externals/dash 05dec7a 062/439: Fix example., Phillip Lord, 2015/08/04
- [elpa] externals/dash 4205e58 064/439: Add clojure threading macros, !-> and !->>, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6520496 060/439: First release, remove warning., Phillip Lord, 2015/08/04
- [elpa] externals/dash ca3eea7 070/439: Fix examples-to-docs to support documenting macros., Phillip Lord, 2015/08/04
- [elpa] externals/dash b29a5bb 071/439: Use make-symbol in macros to avoid names clashing., Phillip Lord, 2015/08/04