MathGroup Archive 2009

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

Search the Archive

Re: Do-command


Because the Do statement by itself does not produce any output.

Use Table instead of Do, or use a Print statement within the Do.

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

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


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: Uwe Gotzes [mailto:u.gotzes at googlemail.com] 


Hi!

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




  • Prev by Date: Re: Do-command
  • Next by Date: Re: Do-command
  • Previous by thread: Re: Do-command
  • Next by thread: Re: Do-command