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

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

bug#21584: 25.0.50; Please add cl-constantly function from Common Lisp


From: Lars Ingebrigtsen
Subject: bug#21584: 25.0.50; Please add cl-constantly function from Common Lisp
Date: Thu, 02 Dec 2021 10:19:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Mark Karpov <markkarpov@openmailbox.org> writes:

> In Common Lisp there is ‘constantly’ function:
>
>   http://www.lispworks.com/documentation/HyperSpec/Body/f_cons_1.htm
>
> which creates new function without side-effects that takes any number of
> arguments and always returns specified value.
>
> For some reason ‘cl-lib’ doesn't provide ‘cl-constantly’, so I guess it
> should exist in pure Emacs Lisp under different name.

I've now added `cl-constantly' to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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