| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: PIZZA time again :-)
Duncan Patton wrote:
> mAsterdam wrote:
>>Duncan Patton wrote: >> >>>mAsterdam wrote: >>> >>>>I think >>>>merge([[salami, buttonmushroom, buttonmushroom, mozarella], >>>> [salami, mozarella, onions]], M). >>>> >>>>should succeed with: >>>>M = [salami, buttonmushroom, buttonmushroom, mozarella, onions]. >>> >>> >>>Sure. But why? A consistent rational needs to be included. >> >>It would be consistent with the heuristic 'don't modify input'.
I don't like my pizza's that rich.
Anyway, along the same lines I think:
merge([[salami, buttonmushroom, mozarella],
[salami, mozarella, salami, mozarella]], M).
should give
M = [salami, buttonmushroom, mozarella, salami, mozarella] M = [salami, mozarella, salami, buttonmushroom, mozarella]
or only the first one if the order /of/ (as opposed to /in/) the list matters (see other sub-thread). Another posibility is to disallow conflicting orders in the input (e.g. salami cannot be before and after mozarella in one list). Received on Sat Sep 03 2005 - 05:51:29 CDT
![]() |
![]() |