Consider the following program:
g = 2f;
g[x] (* (2f)[x] *)
Is there any way I can change the above expression to have it return 2 f[x]
?
With Hold
construct perhaps? Sorry, I'm really not familiar with these Hold*
functions.
I know I could easily define g=2f[#]&
and it would work fine, but in my case what I'm really trying to achieve is something like that :
Transpose @ MapThread[Standardize[{##}, Mean, 2 StandardDeviation] &, xs]
Unfortunately, (2 StandardDeviation)
is taken as a single entity. Having a whole Function
would make it much more messy.
g = (2#)&@*f
usesComposition
. $\endgroup$Function[2 StandardDeviation[##]]
$\endgroup$