[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jan 27 07:57:38 1998 
Subject:Re: member(mars, [a mars bar]) => -- Help!! 
From:Chris Dollin 
Volume-ID:980127.01 

In article <34C0E832.41C6@cs.bham.ac.uk>,
David FitzGerald <d.p.fitzgerald-csai97@cs.bham.ac.uk> writes:

> member(mars, [a mars bar]) =>
> 
> This returns false, as you would imagine.

Is that the code you actually used? Because mars is an undeclared
variable, if you haven't arranged for Pop to mishap on undeclareds,
you'll get a variable with an undef value -- that certainly isn't in
the list.

    member( "mars", [a mars bar] ) =>

prints <true> on my system -- as I'd expect.

-- 

Regards,    | ``"I can't suit myself," said Weinbaum, a little petulantly.
Kers.       | "I work for the Government".'' - Blish, "The Quincunx of Time".