> > Wendy : how about using remove and pick like this: > > to dropOneFrom :inlist > if emptyp :inlist [op :inlist] > op remove pick :inlist :inlist > end > Is remove standard (I assumed it was a UCB/MSWLogo thing) But realize this has the same problem that frank posted. I suspect frank would of used remove if it existed in MW. Like franks "removefrom", remove, removes the first occurance from the left of the type pick, picked :-) How would you write pick? to pick :alist op item (random count :alist) + 1 :alist end What you want is the index ITEM recieved not the data it pointed at. -- =============================================================== 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