Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*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

Re: Noob evaluation question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74232] Re: Noob evaluation question
  • From: "heycarnut" <heycarnut at gmail.com>
  • Date: Thu, 15 Mar 2007 04:58:01 -0500 (EST)
  • References: <et54tf$b7m$1@smc.vnet.net><et8cqo$obg$1@smc.vnet.net>

Thanks for all the answers!
The example we gave was contrived, as I said, so obviously we would
use Range[Random...]] if the example
was doing something real!

We did of course just evaluate the random before the evaluation of the
Position.

My question was not clear enough, I think. We were just curious if
there was a way to keep the statement 'purely functional', and use
something akin to hold/release to freeze the first value returned by
the Random. The answer appears to be no, matching our initial gut
feeling, though chris' answer comes close with using a helper function
- familiar to us from Lisp.

Thanks again, all!

Rob



  • Prev by Date: Re: Real/Comlex function problem with D
  • Next by Date: Publicon: Skipped Figure numbers
  • Previous by thread: Re: Noob evaluation question
  • Next by thread: Re: Noob evaluation question