Placing the "&"
- To: mathgroup at smc.vnet.net
- Subject: [mg114759] Placing the "&"
- From: ziloo <ziloo_1 at yahoo.com>
- Date: Thu, 16 Dec 2010 05:48:13 -0500 (EST)
Hello folks...a newbie question here, Looking at the following three examples, would you please explain the criteria for placing the "&" when using an anonymous function: 2^(#) +1 & Select[Range[1000],PrimeQ[2^(#)+1]&] Select[Range[500], PrimeQ[FromDigits[Table[1, {#}]]] &] Why is the "&" getting further away from the function's body? Thank you ziloo
- Follow-Ups:
- Re: Placing the "&"
- From: Barrie Stokes <Barrie.Stokes@newcastle.edu.au>
- Re: Placing the "&"