| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Aggregation (with GBY) is Relational Division
David Cressey wrote:
> "Marshall" <marshall.spight_at_gmail.com> wrote in message
> > Thanks for the info on fold. I think I'm going to try to learn this one. > It looks useful. > > So fold needs car, cdr, and nil, but nothing else. Hmmmmmmm.......
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
so does
eg> foldr (+) 4 [1..3] produce 4+3+2+1 or 3+2+1+4?
ie. is the start point element relocated (or not) or would you write it as "foldr (+) [1..3] 4"?
Cheers, Frank. Received on Tue Jun 06 2006 - 01:10:47 CDT
![]() |
![]() |