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".
|