Am 23.07.2021 um 15:54 schrieb Riccardo (Jack) Lucchetti:
On Fri, 23 Jul 2021, Artur T. wrote:
> This reminds me of some thought I had a couple of weeks ago: Having an
> apply() function which executes a function "element-wise". An element
> could be a row, column or an item in some array.
I like this. Of course, the details wuold have to be worked out very
carefully for all the data types we have (so definitely not for 2021c),
but having something that help avoiding explicit loops sounds very good
to me.
Yes, interesting thought, and would in principle avoid touching many
function implementations that otherwise could be generalized to arrays
and such.
Of course, feval() also comes to mind here. Maybe it could be cleverly
generalized to achieve the same thing? E.g., overloading it by taking a
modern option bundle, with members "arg1", "arg2", and other
directives?
(But this is not thought through yet, just a spontaneous thought.)
thanks
sven