| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: PIZZA time again :-)
VC wrote:
> mAsterdam wrote:
>> mAsterdam wrote: >>> VC wrote: >>>> mAsterdam wrote: >> >> [snip] >> >>>>> merge_in_its_own_right merges a list of lists into a list. It >>>>> >>>>> - should not have assumptions about an >>>>> intrinsic order of the listed values. >>>>> - should preserve the order of the values >>>>> and fail if it can't. >>>> >>>> >>>> According to you specification the function should fail otherwise >>>> the function will behave as an ordinary (in the ML/Haskell sense) >>>> merge : 'if ordering(L1) == ordering(L2) merge otherwise fail' >>> >>> Yep. >> >> On second thought I'm not sure. >> Does 'ordering(L1) == ordering(L2)' in the ML/Haskell sense hold for >> L1 = [a, b, a, c] >> L2 = [a, a, c] >> ? >
>
>
Thank you. If it's possible to merge (in the _in_its_own_right sense :-) the lists anyway it means that the lists having some ordering is not a precondition. However, even if it is possible it may well be too difficult to start with. I'm actually trying to code something in prolog now. I am not used to that, but prolog feels like a good match for the problem (which was why I crossposted to clp - I hope you don't mind). Received on Sun Sep 04 2005 - 17:30:15 CDT
![]() |
![]() |