Re: PIZZA time again :-)

From: mAsterdam <mAsterdam_at_vrijdag.org>
Date: Fri, 02 Sep 2005 15:56:53 +0200
Message-ID: <43185998$0$11072$e4fe514c_at_news.xs4all.nl>


Paul wrote:
> mAsterdam wrote:
>

>>Assume
>>1. there is a meaningful (or at least consequential)
>>difference between:
>>
>>	toppings([salami, mozarella, onions]).
>>		and
>>	toppings([mozarella, onions, salami]).

>
> Of course there is. If you had the onions at the bottom, they would't
> cook right, although as a BOM for billing, there's no problem.

So, you agree assumption 1 has value. Good.

Consider

        merge(ListOfLists, MergedList).

Now

merge ([[salami, mozarella, onions][mozarella, onions, salami]], M).

should fail because salami is before mozarella in the first list, and after it in the second. It can't preserve the order.

Should

merge([[salami, buttonmushroom, mozarella, onions][salami, artichoke, mozarella]], M).

succeed with

    M = [salami, buttonmushroom, artichoke, mozarella, onions]     M = [salami, artichoke, buttonmushroom, mozarella, onions]

or just the first one (because of the order of the lists)? Received on Fri Sep 02 2005 - 15:56:53 CEST

Original text of this message