"raptor" <[EMAIL PROTECTED]> writes: > > ...and have some_func know it is being called in an iterator context > > and be able to create it's own iterator. foldr could then be > > done as... > > I think may have not only list,scalar,iterator .... context. But some way to > define CONTEXT itself, I don't have idea how ? > array context, boolean context , hash context f.e. > > @a == @b #compare all elements What happens when you want the current value of @a == @b? > %x == %c #compare all key/value pairs of the hash > %c = %b # copy only those key/value pair that exist in both hashes Err... changing = to have a meaning other than assignment seems to me to be somewhat foolhardy. *Especially* as the example you cite is already meaningful and useful. -- Piers
- Re: Reduce [was: Re: Random items (old p5p issu... Glenn Linderman
- Re: Reduce [was: Re: Random items (old p5p issues)] Tom Hughes
- Re: Reduce [was: Re: Random items (old p5p issu... Graham Barr
- Re: Reduce [was: Re: Random items (old p5p ... John Porter
- Re: Reduce [was: Re: Random items (old p5p ... Tom Hughes
- List operations (interleave etc) -- RFRFC skud
- Re: Reduce [was: Re: Random items (old p5p issues)] Martyn J. Pearce
- Re: Reduce [was: Re: Random items (old p5p issues)] Graham Barr
- Re: Reduce [was: Re: Random items (old p5p issu... Jeremy Howard
- Re: Contexts [was:Reduce[Re:]] raptor
- Re: Contexts [was:Reduce[Re:]] Piers Cawley
- Re: Reduce [was: Re: Random items (old p5p issues)] Jeremy Howard
- Re: Reduce [was: Re: Random items (old p5p issu... Martyn Pearce
- Re: Reduce [was: Re: Random items (old p5p ... Jeremy Howard
- Re: PDL-P: Re: Reduce [was: Re: Random ... Karl Glazebrook
- Re: PDL-P: Re: Reduce [was: Re: Random ... Ariel Scolnicov
- Re: PDL-P: Re: Reduce [was: Re: Random ... Tuomas Lukka
- Re: PDL-P: Re: Reduce [was: Re: Random ... Tim Jenness
- Re: PDL-P: Re: Reduce [was: Re: Random ... Tuomas Lukka
- Re: PDL-P: indexing Joshua N Pritikin