-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix off-by-one regression in --iterate
* dash.el (--iterate): Evaluate FORM N-1, not N, times, fixing a regression in Dash 2.18.0. Don't evaluate INIT if N is zero, fixing a bug since the introduction of the macro. * dev/examples.el (-flatten-n): Add regression test. (-iterate): Test for superfluous evaluations. Fixes #373.
- Loading branch information
1 parent
0e97578
commit 3deba09
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters