[CS3304_1381] using is and =

New Message Reply About this list Date view Thread view Subject view Author view

Mike Murphy (mimurph2@VT.EDU)
Sun, 23 Apr 2000 14:36:20 -0400


Message-ID:  <3.0.5.32.20000423143620.007c6910@mail.vt.edu>
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 '='.


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Sun Apr 23 2000 - 14:26:54 EDT