On Mon, May 08, 2006 at 04:44:51PM +0200, Juerd wrote:
> To make sure I understand what you mean, not as a proposed
> implementation:
> 
>     my @input = (...);
>     my @scan = map { [op] @input[0..$_] } [EMAIL PROTECTED];
> 
> Is this what you mean?
> 
> Hm, could that be written as:
> 
>     my @scan = [op]<< @input[ 0 ..<< ([EMAIL PROTECTED]) ]

Yes, except that interim results need not be recalculated. (Indeed,
they are not in Haskell; implementing this feature on the .hs pugs
runcore should be straightforward.)

(Is there special sugar to make @input be the last index when used in a
range, or did you mean ..^ ?)

-- 
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/

Reply via email to