Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Should Pure Functions Require &

  • To: mathgroup at
  • Subject: [mg29723] Should Pure Functions Require &
  • From: "Ersek, Ted R" <ErsekTR at>
  • Date: Wed, 4 Jul 2001 18:43:41 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

I stated wondering if all would work well if pure functions didn't require &
at the end. I am thinking it would be great if a future version of
Mathematica would make the use of & optional. 

So for example we could use 
  Select[data, #!=0]
instead of 
  Select[data, #!=0&]

and we could use 
   #^2 /@expr
instead of 
   #^2& /@expr

I would want to have pure functions ending with & optional rather than
prohibited for backward compatibility.  Wouldn't life be better if we didn't
have to use &. Is there a reason why my suggestion would not work?

  Ted Ersek
  Download Mathematica tips, tricks from

  • Prev by Date: Re: newsgroup use
  • Next by Date: Drawing a Washer, Polar Plot Question
  • Previous by thread: Re: List-Operations on Heads other than List
  • Next by thread: Re: Should Pure Functions Require &