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

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

Re: Passing function to mapcar


From: Joost Kremers
Subject: Re: Passing function to mapcar
Date: Mon, 02 Sep 2024 11:35:32 +0200

On Sun, Sep 01 2024, Heime wrote:
> I am using mapcar to apply the lambda function taking values
> in rgb-list as argument c.
>
> (mapcar (lambda (c)
>           (min 255 (max 0 (round (* c factor)))))
>         rgb-list)
>
> I think that the function used for mapcar should have only a 
> single argument.  Is this correct ?

Yup.

> What can one do if I want to call a function with more than 
> a single argument ?

There's seq-mapn.

-- 
Joost Kremers
Life has its moments



reply via email to

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