Re: Lists in Learn Prolog Now



Il 2006-01-06, wooks <wookiz@xxxxxxxxxxx> ha scritto:
> I cannot reproduce the result asserted in section 4.3 of Learn Prolog
> Now for
>
> a2b([a|Ta],[b|Tb]) :- a2b(Ta,Tb).

You forgot to add

a2b([], []).


--
Lawrence - http://www.oluyede.org/blog
"Anyone can freely use whatever he wants but the light at the end
of the tunnel for most of his problems is Python"
.