[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash c0f2c8f 026/426: Test that it works with lexical b
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash c0f2c8f 026/426: Test that it works with lexical binding. |
Date: |
Tue, 04 Aug 2015 19:36:28 +0000 |
branch: externals/dash
commit c0f2c8fcf7e636feecbbce2411da2252faa879e5
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Test that it works with lexical binding.
---
examples.el | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/examples.el b/examples.el
index aba8781..dad913e 100644
--- a/examples.el
+++ b/examples.el
@@ -1,3 +1,5 @@
+;; -*- lexical-binding: t -*-
+
(require 'bang)
(defun even? (num) (= 0 (% num 2)))
@@ -30,7 +32,9 @@
(defexamples !remove
(!remove (lambda (num) (= 0 (% num 2))) '(1 2 3 4)) => '(1 3)
(!remove 'even? '(1 2 3 4)) => '(1 3)
- (!!remove (= 0 (% it 2)) '(1 2 3 4)) => '(1 3))
+ (!!remove (= 0 (% it 2)) '(1 2 3 4)) => '(1 3)
+ (let ((mod 2)) (!remove (lambda (num) (= 0 (% num mod))) '(1 2 3 4))) => '(1
3)
+ (let ((mod 2)) (!!remove (= 0 (% it mod)) '(1 2 3 4))) => '(1 3))
(defexamples !concat
(!concat) => nil
- [elpa] externals/dash f5b16e3 018/426: Make !partial have the same quote-less API as the rest of bang., (continued)
- [elpa] externals/dash f5b16e3 018/426: Make !partial have the same quote-less API as the rest of bang., Phillip Lord, 2015/08/04
- [elpa] externals/dash a02b6c1 021/426: Add note about no 'cl required., Phillip Lord, 2015/08/04
- [elpa] externals/dash 754dd0d 024/426: Create stand-alone anaphoric macros, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9e74cc0 027/426: Remove dead code., Phillip Lord, 2015/08/04
- [elpa] externals/dash 8eab3d1 028/426: Slight improvements to map., Phillip Lord, 2015/08/04
- [elpa] externals/dash 1997e52 031/426: Treat dashes in docstring better., Phillip Lord, 2015/08/04
- [elpa] externals/dash 52815c5 020/426: Add documentation, Phillip Lord, 2015/08/04
- [elpa] externals/dash d2dfb11 023/426: Use double-bang for anaphoric functions, Phillip Lord, 2015/08/04
- [elpa] externals/dash ed2e447 015/426: !reduce macro, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6f0636f 032/426: Show only three first examples per function., Phillip Lord, 2015/08/04
- [elpa] externals/dash c0f2c8f 026/426: Test that it works with lexical binding.,
Phillip Lord <=
- [elpa] externals/dash 41d77ec 034/426: Add function list to readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 06efd3c 039/426: Slight improvements to docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 85016d3 029/426: Fix quoted forms like `' in docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 214a7db 030/426: Quote and lowercase parameter names in docstring., Phillip Lord, 2015/08/04
- [elpa] externals/dash de5ff6a 037/426: Simplify quotes in readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 722fea6 033/426: Include docs in README, Phillip Lord, 2015/08/04
- [elpa] externals/dash ec27b47 025/426: Turn tests into examples that can both be tested and turned into docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4cc4147 035/426: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash eea3c53 045/426: Move function list above anaphoric function description., Phillip Lord, 2015/08/04
- [elpa] externals/dash e7d5c01 043/426: Add note about README being autogenerated to Development notes., Phillip Lord, 2015/08/04