Re: Listable functions with two brackets f[][] (SubValues)
- To: mathgroup at smc.vnet.net
- Subject: [mg64946] Re: Listable functions with two brackets f[][] (SubValues)
- From: "sashap" <pavlyk at gmail.com>
- Date: Wed, 8 Mar 2006 01:00:34 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Mathematica attaches attributes to symbols, and thus the only way to achieve what you want, it to define your function to thread over lists, say f[n_Integer][x_List] := Map[f[n], x]; f[n_Integer][x_] := (Print[{n, x}]; x) Oleksandr Pavlyk Wolfram Research