Re: Lists in Learn Prolog Now
- From: Lawrence Oluyede <raims@xxxxxxx>
- Date: Sat, 7 Jan 2006 10:20:28 +0100
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"
.
- Follow-Ups:
- Re: Lists in Learn Prolog Now
- From: wooks
- Re: Lists in Learn Prolog Now
- From: wooks
- Re: Lists in Learn Prolog Now
- References:
- Lists in Learn Prolog Now
- From: wooks
- Lists in Learn Prolog Now
- Prev by Date: Re: Could not load foreign predicates in SWI Prolog 5.6.
- Next by Date: Re: Route
- Previous by thread: Lists in Learn Prolog Now
- Next by thread: Re: Lists in Learn Prolog Now
- Index(es):