[Petal] repeat through hash
Mark Holland
mark at thinkfoo.com
Fri Apr 21 10:42:47 BST 2006
Jonathan Vanasco wrote:
> i believe that in python you can map the repeat onto a generator or
> iterator - i *think* you can figure out a way mimic that it in perl
> using petal's method support
>
> ie, your repeat loop calls a function that returns the next item in
> whatever sequence, and petal stops doing that at the end
>
> its pretty easy to do in python tal, but i'm not sure about the petal
> version.
I asked the list some time ago about going through cursors in petal.
Jean-Michel suggested I tie the cursor to an array, which worked well.
I'll have a look for my code but I think it's long gone.
https://lists.webarch.co.uk/pipermail/petal/2003-February/000301.html
More information about the Petal
mailing list