From: Bastian Erdnuess on 7 Dec 2009 22:10 Scott Hemphill <hemphill(a)hemphills.net> wrote: > > How does DOSUBS work? All functions of this kind (MAP, > > STREAM, DOSUBS) somehow don't do what I would expect at all. > > n << proc >> DOSUBS > > removes the list from the stack, and then one at a time, pushes the > contents of each sublist of length "n" onto the stack and executes > << proc >>. It then encapsulates all the results into a list. OK, so DOSUBS/DOLIST let the partially results on the stack while running and just collect everything at the end. Now, I think I also get a clue about what STREAM does. But MAP seems to run pretty different. It seems that it gets executed in a seperate stack environment. Bastian
First
|
Prev
|
Pages: 1 2 3 4 5 Prev: mini-challenge from UH contest Next: Analogon to 28S' FORM on the HP 50g |