| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Aggregation (with GBY) is Relational Division
vc wrote:
> Frank Hamersley wrote:
[..]
>> I know its just an intro web page ... but does anyone know how foldr >> disperses the start point? >> >> eg> fold1 (+) 4 [1..3] produces a computational sequence 4+1+2+3 >>
Per your subsequent post - our expressions are the "same".
>> so does >> >> eg> foldr (+) 4 [1..3] produce 4+3+2+1 or 3+2+1+4?
or
foldr (+) 4 [1..3] => 1 + (2 + (4 + 3)) = 10
or
foldr (+) 4 [1..3] => (((4 + 3) + 2) + 1) = 10
???
The question becomes does the leftness/rightness persist in the construction of the expression prior to evaluation. I must confess my past exposure to stack oriented processing of expressions is influencing my interest.
Cheers, Frank. Received on Tue Jun 06 2006 - 23:44:31 CDT
![]() |
![]() |