Re: Do-command
- To: mathgroup at smc.vnet.net
- Subject: [mg102640] Re: [mg102588] Do-command
- From: "David Park" <djmpark at comcast.net>
- Date: Mon, 17 Aug 2009 04:06:31 -0400 (EDT)
- References: <11604324.1250419517054.JavaMail.root@n11>
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?