MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Listable functions with two brackets f[][] (SubValues)

  • To: mathgroup at
  • Subject: [mg64946] Re: Listable functions with two brackets f[][] (SubValues)
  • From: "sashap" <pavlyk at>
  • Date: Wed, 8 Mar 2006 01:00:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Mathematica attaches attributes to symbols, and thus the only way to
achieve what you want, it to define your function to thread over lists,

f[n_Integer][x_List] := Map[f[n], x];
f[n_Integer][x_] := (Print[{n, x}]; x)

Oleksandr Pavlyk
Wolfram Research

  • Prev by Date: Re: Mathematica Link for Excel
  • Next by Date: Re: General--Making the DisplayFormula style in ArticleModern look like Traditional
  • Previous by thread: Re: Does Mathematica run on HP-UX (Itanium) ?
  • Next by thread: MathML of input expression