Does there exist a single pattern that would match SubValues
of arbitrary "length" with a given head? For example, I would like to match all of the following
f[x]
f[x][y]
f[x][y][z]
f[x][y][z][w]
...
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityDoes there exist a single pattern that would match SubValues
of arbitrary "length" with a given head? For example, I would like to match all of the following
f[x]
f[x][y]
f[x][y][z]
f[x][y][z][w]
...