MathGroup Archive 2011

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

Search the Archive

Re: Quick Mathematica Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115282] Re: Quick Mathematica Question
  • From: dr DanW <dmaxwarren at gmail.com>
  • Date: Thu, 6 Jan 2011 02:05:30 -0500 (EST)
  • References: <ig1i6l$6jj$1@smc.vnet.net>

ReplaceRepeated has a MaxIterations option, or you could do:

Grid[NestList[#1 /. {0 -> 1, 1 -> Sequence[1, 0]} & , {0}, 4]]

Daniel


  • Prev by Date: Text Color in Copied Text
  • Next by Date: Postfix and options
  • Previous by thread: Re: Quick Mathematica Question
  • Next by thread: Re: Quick Mathematica Question