Michal Wallace <[EMAIL PROTECTED]> wrote: > perlhash.pod says:
> """ > TODO: Steve Fink sayd: > And if there were a keys() method, then 'defined' and 'exists' are > very different. (And there ought to be, and would be if we weren't > all ignoring Leo's iterator proposal.) > I need to read that proposal :-) > """ > Looks like the proposal got accepted? I see iterator.c and > read the recorresponding tests... I went ahead and used it. Yes, I did accept it ;-) Iterators are working for the normal case of just iterating over hash/array like in your code. Still missing/unfinished is one part of my proposal that is: shift PVal, PIter // get first value from front This doesn't actually change the aggregate, but should simulate to to so, i.e. PVal is the first value, *and* PIter has the semantics of the aggregate, as if the first value has been shifted off. This should reflect a (car, cdr) which could be handy for functional programming stuff. I don't know, if we want this part too. > Sincerely, > > Michal J Wallace leo