here is a dealer: to deal :n :set if :n = 0 [output []] localmake "picked pick :set output fput :picked deal :n - 1 remove :picked :set end it only works if :set contains no duplicates because remove removes all elements equal to :picked. one would have to write a new removing function to be able to deal with duplicates. this is mswlogo code, so i guess it should work in ucblogo also, i am not sure if other dialects have pick and remove -- Erich Neuwirth <neuwirth@smc.univie.ac.at> Computer Supported Didactics Working Group, Univ. Vienna Visit our SunSITE at http://sunsite.univie.ac.at --------------------------------------------------------------- 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