[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> eliminating items randomly from a list



Frank Caggiano wrote:
> 
> George Mills wrote:
> >
> > Your solution is close but not really random (depending on what's
> > in the list).
> > Your solution assumes each element in the list is unique.
> 
> Your right. The original request spoke about a list of procedure names
> which would of course be unique. I should have noted that in my reply.

Why would the list of procedure names have to be unique?
I'm not saying your solution would not of solved her problem.
And if it indeed solves her problem today what if she changed
her code to allow multiple instances of procedure names tomorro?

Dealing with the list by position is simpler (almost half the code of
similar complexity), more efficient (no comparing data elements) and
more general purpose (works with unique or non unique data).

It's a public forum, someone may grab your (very well documented code
I might add) and use it in something else and think it truely removes a
random element from a list. Which by definition it didn't.

This is a public learning forum :-)

> 
> > Wendy Petti wrote:
> > > I have a list with 11 words in it; each is the name of a procedure.
> 
> regards
> 
> --
> Frank Caggiano
> caggiano@atlantic.net
> http://www.atlantic.net/~caggiano

-- 
===============================================================
George Mills
email: mills@softronix.com
http://www.softronix.com
The www page contains some very powerful educational software.
Our single most important investment is our kids.
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home