[Cst-1b] Mistake in Prolog Notes?
Martin Harper
mcnh2@cam.ac.uk
Wed, 17 May 2000 21:01:24 +0100
I think he's trying to emphasise that it's the list [[a,b],c], NOT the list
[a,b,c]... but certainly, such structures are lists.
Martin.
"M.Y.W.Y.B." wrote:
> Prolog lecture notes, p18:
>
> The last example for lists written in dot notation is
>
> (.(a,.(b,[])),.(c,[]))
>
> The notes claim that this is not a proper list but to me it seems that it's
> a list of two elements:
> (1) .(a,.(b,[])) is the head of the list
> (2) .(c,[]) is the tail of the list, ie a list of 1 element, c.
>
> Have I missed out something or is it a real mistake in the notes?
>
> Thanks
>
> Moritz
>
> _______________________________________________
> CST-1B mailing list
> CST-1B@srcf.ucam.org
> http://www.srcf.ucam.org/mailman/listinfo/cst-1b