|
From: | Stefan Monnier |
Subject: | Re: Why is FUNC in cl-callf not allowed to be an expression? |
Date: | Fri, 10 May 2019 10:22:31 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> 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))) And I see it solves another downside of (gv-callf N EXP), which is that in (gv-callf 2 (append HEAD (nth INDEX LIST) TAIL)) the evaluation order will actually end up being INDEX; LIST; HEAD; TAIL which is counter-intuitive. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |