help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: cl-loop - do you understand it well?


From: Emanuel Berg
Subject: Re: cl-loop - do you understand it well?
Date: Thu, 15 Dec 2022 00:53:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Heerdegen wrote:

>>> Jokes aside: No. I'm just using a gv-setter of
>>> `current-time'. I want
>>
>> Is it something new? How this will be useful?
>
> It would be very useful but no I don't have such a thing, it
> was a joke.

Jokes that I don't understand aside, why does this return 4?

(require 'cl-lib)

(cl-loop
  for i from 0 to 1
  collect (lambda () i) into funs
  finally return (apply #'+ (mapcar #'funcall funs)) )

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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