Is there a way to set attributes for a function which holds for all arguments when currying?
When evaluating, e.g.,
SetAttributes[ x, NHoldAll ]
N[ x[1], 10 ]
N[ x[1][1],10 ]
I get
x[1]
x[1][1.000000000]
and I'm looking for some way to get
x[1]
x[1][1]
instead.
The first argument of SetAttributes should be a symbol so evaluating SetAttributes[x[i_]] or SetAttributes[x[1]] doesn't work.
None of the documentation on attributes and functions related to currying gives any indication of how to do this.