Bill Allombert on Fri, 17 May 2024 20:45:41 +0200


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

Re: apply / select are inconsistent on Maps


On Fri, May 17, 2024 at 12:59:57PM -0400, Max Alekseyev wrote:
> A couple more requests along the same lines.
> 
> Currently, parselect() / parapply() do not work on Lists (see example
> below) while regular select() / apply() do. Can it be fixed?
>
> Also, is it possible to have a combined (par)selectapply function that will
> select elements based on one function and apply another function to those
> selected? Something like:
> 
> selectapply( selectfunction, applyfunction, container )

You should use [ applyfunction(x)|x<- container, selectfunction(x)]

Cheers,
Bill