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: Michael Heerdegen
Subject: Re: cl-loop - do you understand it well?
Date: Sat, 10 Dec 2022 19:56:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Emanuel Berg <incal@dataswamp.org> writes:

> So what is this eval'd to - an why?

The answer to the question in the subject is easier: No!


> Hint: All and any method is allowed!
>
> ;;; -*- lexical-binding: t -*-
>
> (require 'cl-lib)
>
> (cl-loop
>   for i from 0 to 1
>   collect (lambda () i) into funs
>   finally return (apply #'+ (mapcar #'funcall funs)) )

Any method?  I would like to test it with Emacs 31.  Would it make a
difference?

Honestly: Do the cl-loop fans think we should change the behavior?


Michael.




reply via email to

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