Mike Murphy (mimurph2@VT.EDU)
Sun, 23 Apr 2000 14:36:20 -0400
Message-ID: <firstname.lastname@example.org> Date: Sun, 23 Apr 2000 14:36:20 -0400 From: Mike Murphy <mimurph2@VT.EDU> Subject: [CS3304_1381] using is and =
> factor([Head|Tail], Answer) :-
> is_list(Head), Answer is Head. ??
> How do I bind answer to the first element in the list ( [3,1] )?
I've found that 'is' is for binding numerical expressions to variables, and
that '=' is for binding other variables to variables. If 'is' isn't
working, you may want to try '='.
This archive was generated by hypermail 2.0b3 on Sun Apr 23 2000 - 14:26:54 EDT