Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] <

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: question about list processing
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Fri, 15 Jun 2007 17:50:45 -0500
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;

On 6/15/07, Duran, Andrea <ADuran@xxxxxxxxxxxxxxxxxxxxx> wrote:
When I have a student that asks about list
processing I always use Fortune Telling to demonstrate this skill.
Specifically the folder that chooses a question at random from a list of
questions from an invisible textbox. What else can list processing mean?

~Andrea


Here is another example of list processing related to "setpos"

http://mia.openworldlearning.org/mwforum/msg02635.html




I like this example of list processing, though I agree that it is advanced:

http://mia.openworldlearning.org/mwforum/msg02983.html

the "if.touching.many.do" procedure receives a list called "others".
It is a list of names of turtles.

"if.touching.many.do" processes that list by checking if each item in
that list touches the "main" turtle.

Here for example:

if.touching.many.do "pacman
[t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15
 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25]
[eatingpoints ask :touched [ht]]

the "others" list is:

[t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15
 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25]

and "if.touching.many.do" checks if "t1" and "pacman" are touching,
then if "t2" and "pacman" are touching, then if "t3" and "pacman" are
touching, then if "t4" and "pacman" are touching. etc.


Daniel
OpenWorld Learning


  • Previous by thread: Re: question about list processing

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008