MathGroup Archive 2009

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

Search the Archive

Re: Do-command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102628] Re: [mg102588] Do-command
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Mon, 17 Aug 2009 04:04:20 -0400 (EDT)
  • References: <200908161038.GAA01118@smc.vnet.net>
  • Reply-to: drmajorbob at bigfoot.com

Because Do _never_ produces output. Never has, never will.

You could, however, use

Table[Select[{1, 2, 4, 7, 6, 2}, # >= i &], {i, 7}]

or

Do[Print@Select[{1, 2, 4, 7, 6, 2}, # >= i &], {i, 7}]

Bobby

On Sun, 16 Aug 2009 05:38:59 -0500, Uwe Gotzes <u.gotzes at googlemail.com>  
wrote:

> Hi!
>
> Can anybody tell, why
> Do[Select[{1, 2, 4, 7, 6, 2}, # >= i &], {i, 7}]
> does not produce output in Mathematica?
>



-- 
DrMajorBob at bigfoot.com


  • References:
    • Do-command
      • From: Uwe Gotzes <u.gotzes@googlemail.com>
  • Prev by Date: Re: Bug: ListPlot and Tooltip
  • Next by Date: Re: Do-command
  • Previous by thread: Do-command
  • Next by thread: Re: Do-command