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 2007

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

Search the Archive

& without #

  • To: mathgroup at
  • Subject: [mg73042] & without #
  • From: "Kristen W Carlson" <carlsonkw at>
  • Date: Tue, 30 Jan 2007 23:40:34 -0500 (EST)


From Built-in Functions/Cases, here is this (undocumented?) usage of &
without #:



Here is what happens without the &:



Can someone who understands this please explain as completely as you
can, including how & and # work
together, given the behavior of & alone. And is this documented anywhere?

This might help and I also post it to help illuminate for those who
haven't seen this & usage; it is from Andrzej a while ago (Andrzej I
hope you don't mind):

In general it means a constant function. For example 3& will return 3
with any argument. But the are at least two "special" functions,
which will work like "variable constants" when used in this way. One
of them is Random[]& (and various variants of it). Another is Unique
[symbol]&, which on every evaluation will produce a unique name based
on "symbol".


  • Prev by Date: Re: PowerMod[] - Mathematica 5.0 - problem/error/bug?
  • Next by Date: Bug in PowerMod function (mathematica 5.0)
  • Previous by thread: Re: WhichRootOfUnity
  • Next by thread: Bug in PowerMod function (mathematica 5.0)