-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gabriel Sechan wrote: >> From: Andrew Lentvorski <[EMAIL PROTECTED]> >> Gabriel Sechan wrote: >>> If you have to get your head around it, by definition its not intuitive. >> >> Iteration is far from intuitive, IMO. We are *taught* iteration far >> earlier. >> > For a very large value of far earlier- we're taught iteration in > childhood, because its a more real world way of looking at things. Want > to wash all the dishes? Well, wash dish 1, wash dish 2, wash dish 3, > and so on. Humans seem to be hard wired to think in this way- iterate > over objects.
Are you taught that, or are you taught to wash the top dish, put it away, then repeat until there are no more dishes left? My guess is you were not taught to count the number of dishes in the stack before starting. ;-) >> In addition, as I have pointed out. "Recursion" isn't necessarily the >> win over iteration. It's the existence of "foreach/map/apply/collect" >> in the language that is the big win. >> > Foreach always seemed to me to be a form of iteration, not recursion. Best example of the two being functionally equivalent yet. ;-) - --Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGfH4mOagjPOywMBARAvG9AKC7Uf7Xr53pEj7iLu+4usaN8Rdm7wCeJWD9 Skhzgu5pV9OwPcbIEGJG5OA= =N/Wk -----END PGP SIGNATURE----- -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
