emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is FUNC in cl-callf not allowed to be an expression?


From: Stefan Monnier
Subject: Re: Why is FUNC in cl-callf not allowed to be an expression?
Date: Fri, 10 May 2019 10:19:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> While it doesn't solve the problem, while playing with it I noticed that
> I'm less annoyed by the use of a number if I can put it first, as in:
>
>     (gv-callf 2
>       (append head (car x) (cdr x)))
>       
> I'm not sure I can say why, tho.

Now that I look at it again, I guess an "anamorphic" version would be
probably more obvious:

    (gv-modify (nth i l)
       (append head it (cdr x)))

Implementation left as an exercise for the reader,


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]