Nathan Conklin (Nathan.Conklin@VT.EDU)
Sat, 22 Apr 2000 17:37:04 -0400
Message-ID: <200004222137.RAA12726@e115101.vtacs.com> Date: Sat, 22 Apr 2000 17:37:04 -0400 From: Nathan Conklin <Nathan.Conklin@VT.EDU> Subject: Re: [CS3304_1381] binding a logical variable to a list
>
> factor([Head|Tail], Answer) :-
> is_list(Head), Answer is Head. ??
>
> How do I bind answer to the first element in the list ( [3,1] )?
>
/*
the list that I pass in looks like this: [[3,1],plus,[2,1]]
*/
factor([Answer|_Tail], Answer) :- is_list(Answer).
-- Nathan Conklin Nathan.Conklin@vt.edu 540-953-2254
This archive was generated by hypermail 2.0b3 on Sat Apr 22 2000 - 17:37:10 EDT