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

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

Re: Better way to make sure external command exists in the system?


From: Emanuel Berg
Subject: Re: Better way to make sure external command exists in the system?
Date: Thu, 25 Mar 2021 22:10:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis wrote:

>> Use a set function
>> 
>>   (cl-map 'list #'number-to-string '(1 2 3)) ; ("1" "2" "3")
>
> But why use Emacs Lisp CL library and complexer Common Lisp
> style when it works this way simpler:
>
> (mapcar #'number-to-string '(1 2 3)) → ("1" "2" "3")
>
> Any reason?
>
> Then if I am to use some function defined in Emacs Lisp,
> then I would rather use this one, instead of `cl-map', as it
> is simpler, it will recognize the sequence.
>
> (seq-map #'number-to-string '(1 2 3)) → ("1" "2" "3")

Sure, use the one you like the best.

Post the code again when you are done.

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




reply via email to

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