Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer n-ary over unary combinators where possible #308

Merged
merged 1 commit into from
Jul 8, 2021
Merged

Prefer n-ary over unary combinators where possible #308

merged 1 commit into from
Jul 8, 2021

Commits on Jul 8, 2021

  1. Prefer n-ary over unary/binary combinators

    This is a rewrite and extension of PR #72 to address issue #306.
    For discussion, especially wrt performance, see PRs #72 and #308.
    
    * dash.el (-on, -flip, -not, -orfn, -andfn): Return a variadic
    function.  Declare as pure and side-effect-free.
    (-rotate-args): New combinator suggested by @vapniks in PR #72.
    (-const): Declare as pure and side-effect-free.
    
    * NEWS.md (2.19.0): Announce -rotate-args and variadic combinators.
    
    * dev/examples.el (-partition-after-pred): Fix oddp bug waiting to
    happen with negative dividends.
    (-cons*): Check that &rest args are safe to mutate.
    (-on, -flip, -const, -not, -orfn, -andfn): Extend tests.
    (-rotate-args): New test.
    
    * README.md:
    * dash.texi: Regenerate docs.
    basil-conto committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    11a6296 View commit details
    Browse the repository at this point in the history